From 15b699e105c0e8362c1cffbf37da007bc0395c20 Mon Sep 17 00:00:00 2001 From: oreodave Date: Fri, 1 Nov 2019 02:30:57 +0000 Subject: -download items section Barely use it, useless for anything except *get* requests. --- doom.d/config.org | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'doom.d/config.org') diff --git a/doom.d/config.org b/doom.d/config.org index 17b0741..7d103b1 100644 --- a/doom.d/config.org +++ b/doom.d/config.org @@ -310,24 +310,6 @@ in Doom, so I need this binding :desc "Format code universally" "=" 'format-all-buffer) ) #+END_SRC -*** Download Items -#+BEGIN_SRC elisp -(defun oreodave/request-json-fn (url) - (set-process-sentinel - (start-process-shell-command "request-json" "*request-json*" (format "curl %s" url)) - (lambda (process event) - (when (memq (process-status process) '(exit stop)) - (message "Request finished") - (with-current-buffer "*request-json*" - (json-mode) - (json-mode-beautify)))))) - -(defun oreodave/request-json () - (interactive) - (oreodave/request-json-fn (read-string "Enter url: ")) - ) -#+END_SRC -Download JSON easily and be able to get responses quickly. *** Themes #+BEGIN_SRC elisp (setq oreodave/aesthetics/list '(doom-molokai doom-peacock doom-solarized-dark)) -- cgit v1.2.3-13-gbd6f