summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2023-06-07 16:45:22 -0700
committerFranck Cuny <franck@fcuny.net>2023-06-07 16:45:22 -0700
commit49ac0fe9f704e0900df6acbe61391a5e195512f1 (patch)
tree91f73d454d5b9603fea9fd63dfcd570ee4c0b2a8
parentremove package/configuration for `default-text-scale` (diff)
downloademacs.d-49ac0fe9f704e0900df6acbe61391a5e195512f1.tar.gz
add the package restclient
Change-Id: Ic9537b4ad81c40ce9c80b85bbdae60a4e8e74df1
-rw-r--r--init.org21
1 files changed, 21 insertions, 0 deletions
diff --git a/init.org b/init.org
index 10559a8..8ffa974 100644
--- a/init.org
+++ b/init.org
@@ -1850,6 +1850,27 @@ This is to make =org-mode= document looks a bit nicer.
   (recentf-mode 1))
 #+end_src
 
+** restclient
+
+Open a file with the extension =.rest=, and start writing queries in it. For example:
+
+#+begin_example
+GET https://api.github.com
+User-Agent: Emacs Restclient
+#+end_example
+
+Then one of the following binding:
+| binding | action                                             |
+|---------+----------------------------------------------------|
+| =C-c C-c= | run the query                                      |
+| =C-c C-v= | same as above but switch focus to the other buffer |
+
+#+begin_src emacs-lisp
+(use-package restclient
+  :ensure t
+  :mode ("\\.rest\\'" . restclient-mode))
+#+end_src
+
 ** rg
 
 #+begin_src emacs-lisp