From 49ac0fe9f704e0900df6acbe61391a5e195512f1 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Wed, 7 Jun 2023 16:45:22 -0700 Subject: add the package restclient Change-Id: Ic9537b4ad81c40ce9c80b85bbdae60a4e8e74df1 --- init.org | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'init.org') 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 -- cgit v1.2.3