aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shoshimacs.el10
-rw-r--r--shoshimacs.org14
2 files changed, 24 insertions, 0 deletions
diff --git a/shoshimacs.el b/shoshimacs.el
index c7eba28..a2fb760 100644
--- a/shoshimacs.el
+++ b/shoshimacs.el
@@ -271,6 +271,16 @@
(kill-new url)
(message "Pasted to %s (on kill ring)" url))))
+(defvar restclien-repo "https://github.com/pashky/restclient.el.git")
+(defvar restclient-dir "~/src/restclient.el")
+
+(unless (file-directory-p restclient-dir)
+ (shell-command
+ (format "git clone %s %s" restclient-repo restclient-dir)))
+
+(add-to-list 'load-path restclient-dir)
+(require 'restclient)
+
;;; User Interface
(when (display-graphic-p)
(scroll-bar-mode -1)
diff --git a/shoshimacs.org b/shoshimacs.org
index 554cc3d..9861162 100644
--- a/shoshimacs.org
+++ b/shoshimacs.org
@@ -910,6 +910,20 @@ an API token is stored in my ~.authinfo~ file.
(message "Pasted to %s (on kill ring)" url))))
#+end_src
+** restclient
+
+#+begin_src emacs-lisp
+ (defvar restclien-repo "https://github.com/pashky/restclient.el.git")
+ (defvar restclient-dir "~/src/restclient.el")
+
+ (unless (file-directory-p restclient-dir)
+ (shell-command
+ (format "git clone %s %s" restclient-repo restclient-dir)))
+
+ (add-to-list 'load-path restclient-dir)
+ (require 'restclient)
+#+end_src
+
* UI
:PROPERTIES:
:header-args:emacs-lisp: :noweb-ref user-interface :noweb-sep "\n\n" :results silent