summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-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