emacs.d/init.el: Enable exec-path-from-shell & CIDER
exec-path-from-shell is needed to pull in env variables when
Emacs is not launched from the shell e.g via Emacs.app which
prevents CIDER from working because lein cannot be found.
1 files changed, 17 insertions(+), 0 deletions(-)

M emacs.d/init.el
M emacs.d/init.el +17 -0
@@ 3,3 3,20 @@ 
 (package-initialize)
 (set-frame-font "Fantasque Sans Mono Italic 16" nil t)
 
+(custom-set-variables
+ ;; custom-set-variables was added by Custom.
+ ;; If you edit it by hand, you could mess it up, so be careful.
+ ;; Your init file should contain only one such instance.
+ ;; If there is more than one, they won't work right.
+ '(package-selected-packages (quote (exec-path-from-shell cider))))
+(custom-set-faces
+ ;; custom-set-faces was added by Custom.
+ ;; If you edit it by hand, you could mess it up, so be careful.
+ ;; Your init file should contain only one such instance.
+ ;; If there is more than one, they won't work right.
+ )
+
+;; Copy in variables like $PATH from shell
+;; https://github.com/purcell/exec-path-from-shell
+(when (memq window-system '(mac ns x))
+  (exec-path-from-shell-initialize))