Browse Source

Add shell variable helper to emacs

master
Taylor Bockman 5 years ago
parent
commit
7d5f14a9ea
  1. 6
      dotfiles/emacs.d/init.el
  2. 4
      dotfiles/emacs.d/package.el

6
dotfiles/emacs.d/init.el

@ -176,6 +176,12 @@
(add-hook 'python-mode-hook 'jedi:setup) (add-hook 'python-mode-hook 'jedi:setup)
(setq jedi:complete-on-dot t) (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 ;; Enable ParEdit for Emacs lisp modes

4
dotfiles/emacs.d/package.el

@ -41,6 +41,10 @@
ws-butler ws-butler
;;;;;;;;;; ;;;;;;;;;;
;; Shell helpers
exec-path-from-shell
;;;;;;;;;;;;;;;;;;;;
;; Editing Utility ;; Editing Utility
autopair autopair
;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;

Loading…
Cancel
Save