From 7d5f14a9eab6b6d7fd5ca9332f8d06de60f3a549 Mon Sep 17 00:00:00 2001 From: Taylor Bockman Date: Thu, 15 Aug 2019 10:32:38 -0700 Subject: [PATCH] Add shell variable helper to emacs --- dotfiles/emacs.d/init.el | 6 ++++++ dotfiles/emacs.d/package.el | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/dotfiles/emacs.d/init.el b/dotfiles/emacs.d/init.el index 28d32a3..814bd4b 100644 --- a/dotfiles/emacs.d/init.el +++ b/dotfiles/emacs.d/init.el @@ -176,6 +176,12 @@ (add-hook 'python-mode-hook 'jedi:setup) (setq jedi:complete-on-dot t) +;;-------------------------------------------------------------------------------------- +;; Ensure Shell Variables Look the Same in Emacs (OS X and Linux) +;;-------------------------------------------------------------------------------------- + +(when (memq window-system '(mac ns x)) + (exec-path-from-shell-initialize)) ;;-------------------------------------------------------------------------------------- ;; Enable ParEdit for Emacs lisp modes diff --git a/dotfiles/emacs.d/package.el b/dotfiles/emacs.d/package.el index 578c4b7..798d7dc 100644 --- a/dotfiles/emacs.d/package.el +++ b/dotfiles/emacs.d/package.el @@ -41,6 +41,10 @@ ws-butler ;;;;;;;;;; + ;; Shell helpers + exec-path-from-shell + ;;;;;;;;;;;;;;;;;;;; + ;; Editing Utility autopair ;;;;;;;;;;;;;;;;;;