[emacs] enable exec-path-from-shell
authorAmin Bandali <amin@aminb.org>
Sat, 28 Apr 2018 20:22:36 +0000 (16:22 -0400)
committerAmin Bandali <amin@aminb.org>
Sat, 28 Apr 2018 20:22:36 +0000 (16:22 -0400)
.gitmodules
init.org
lib/exec-path-from-shell [new submodule]

index 6a5b74d..2ce5dbb 100644 (file)
@@ -28,6 +28,9 @@
 [submodule "epkg"]
        path = lib/epkg
        url = git@github.com:emacscollective/epkg.git
 [submodule "epkg"]
        path = lib/epkg
        url = git@github.com:emacscollective/epkg.git
+[submodule "exec-path-from-shell"]
+       path = lib/exec-path-from-shell
+       url = git@github.com:purcell/exec-path-from-shell.git
 [submodule "ghub"]
        path = lib/ghub
        url = git@github.com:magit/ghub.git
 [submodule "ghub"]
        path = lib/ghub
        url = git@github.com:magit/ghub.git
index 88f5e24..55e8269 100644 (file)
--- a/init.org
+++ b/init.org
@@ -264,7 +264,6 @@ contain the mess.
         `((".*" ,(no-littering-expand-var-file-name "auto-save/") t))))
 #+end_src
 
         `((".*" ,(no-littering-expand-var-file-name "auto-save/") t))))
 #+end_src
 
-
 ** Custom file (=custom.el=)
 
 I'm not planning on using the custom file much, but even so, I
 ** Custom file (=custom.el=)
 
 I'm not planning on using the custom file much, but even so, I
@@ -287,15 +286,15 @@ Let's use [[https://github.com/purcell/exec-path-from-shell][exec-path-from-shel
 in my shell.
 
 #+begin_src emacs-lisp
 in my shell.
 
 #+begin_src emacs-lisp
-;; (use-package exec-path-from-shell
-;;   :defer 1
-;;   :init
-;;   (setq exec-path-from-shell-check-startup-files nil)
-;;   :config
-;;   (exec-path-from-shell-initialize)
-;;   ;; while we're at it, let's fix access to our running ssh-agent
-;;   (exec-path-from-shell-copy-env "SSH_AGENT_PID")
-;;   (exec-path-from-shell-copy-env "SSH_AUTH_SOCK"))
+(use-package exec-path-from-shell
+  :defer 1
+  :init
+  (setq exec-path-from-shell-check-startup-files nil)
+  :config
+  (exec-path-from-shell-initialize)
+  ;; while we're at it, let's fix access to our running ssh-agent
+  (exec-path-from-shell-copy-env "SSH_AGENT_PID")
+  (exec-path-from-shell-copy-env "SSH_AUTH_SOCK"))
 #+end_src
 
 ** Server
 #+end_src
 
 ** Server
diff --git a/lib/exec-path-from-shell b/lib/exec-path-from-shell
new file mode 160000 (submodule)
index 0000000..54ea2f9
--- /dev/null
@@ -0,0 +1 @@
+Subproject commit 54ea2f9c3c81d18b96e4d33c4c547e02eee420dc