diff --git a/README.org b/README.org index 039b27ae..93cd7f69 100644 --- a/README.org +++ b/README.org @@ -776,6 +776,19 @@ Sometimes I need to edit CSV files quickly :mode ("\\.csv\\'" . csv-mode)) #+end_src +*** Restclient +Sometimes dealing with REST APIs it's easiest to do this incrementally with restclient.el +#+begin_src emacs-lisp +(use-package restclient + :commands (restclient-mode)) +#+end_src + +Let's also add org-babel support for this to create documentation easier. +#+begin_src emacs-lisp +(use-package ob-restclient + :after org) +#+end_src + ** File Management *** Dired I'm making a small function in here to open files in the appropriate program using XDG defaults. This is like opening odt files in Libreoffice or mp4 files in MPV. @@ -886,6 +899,7 @@ Part of this config includes some special capture templates for my work as a you #+begin_src emacs-lisp (use-package org :straight t + :ensure t :config (setq org-startup-indented t org-edit-src-content-indentation 0 @@ -900,7 +914,8 @@ Part of this config includes some special capture templates for my work as a you '((emacs-lisp . t) (python . t) (ditaa . t) - (shell . t))) + (shell . t) + (restclient . t))) (setq org-ditaa-jar-path "/usr/bin/ditaa") @@ -912,6 +927,7 @@ Part of this config includes some special capture templates for my work as a you (add-to-list 'org-structure-template-alist '("yaml" . "src yaml")) (add-to-list 'org-structure-template-alist '("yml" . "src yaml")) (add-to-list 'org-structure-template-alist '("q" . "quote")) + (add-to-list 'org-structure-template-alist '("rc" . "src restclient")) (setq org-capture-templates '(("t" "Personal todo" entry diff --git a/init.el b/init.el index dd9b3cc8..b63f0d0a 100644 --- a/init.el +++ b/init.el @@ -446,6 +446,12 @@ vertically." (use-package csv-mode :mode ("\\.csv\\'" . csv-mode)) +(use-package restclient + :commands (restclient-mode)) + +(use-package ob-restclient + :after org) + (use-package dired :ensure nil :straight nil @@ -527,6 +533,7 @@ vertically." (use-package org :straight t + :ensure t :config (setq org-startup-indented t org-edit-src-content-indentation 0 @@ -541,7 +548,8 @@ vertically." '((emacs-lisp . t) (python . t) (ditaa . t) - (shell . t))) + (shell . t) + (restclient . t))) (setq org-ditaa-jar-path "/usr/bin/ditaa") @@ -553,6 +561,7 @@ vertically." (add-to-list 'org-structure-template-alist '("yaml" . "src yaml")) (add-to-list 'org-structure-template-alist '("yml" . "src yaml")) (add-to-list 'org-structure-template-alist '("q" . "quote")) + (add-to-list 'org-structure-template-alist '("rc" . "src restclient")) (setq org-capture-templates '(("t" "Personal todo" entry @@ -728,8 +737,8 @@ vertically." (setq org-roam-directory "~/org" org-roam-buffer-width 0.25 org-roam-file-exclude-regexp ".stversion.*\|.stfolder.*\|.*~.*\|.*sync.*" - org-roam-db-location "~/.dotemacs/org-roam.db" - org-roam-completion-everywhere t + org-roam-db-location "~/.dotemacs/org-roam.db" + org-roam-completion-everywhere t org-roam-capture-templates '(("d" "default" plain (function org-roam--capture-get-point) "%?"