Cache exec-path
This commit is contained in:
parent
07b66708af
commit
b636449605
1 changed files with 8 additions and 5 deletions
|
@ -23,11 +23,14 @@
|
||||||
;; fix emacs PATH on OSX (GUI only)
|
;; fix emacs PATH on OSX (GUI only)
|
||||||
(when window-system
|
(when window-system
|
||||||
(setenv "SHELL" "/usr/local/bin/zsh")
|
(setenv "SHELL" "/usr/local/bin/zsh")
|
||||||
(setenv "EMACS" "1") ; make sure the world knows
|
;; `exec-path-from-shell' is slow, so bring out the cache
|
||||||
(setq exec-path (eval-when-compile
|
(setq exec-path
|
||||||
(require 'exec-path-from-shell)
|
(or (persistent-soft-fetch 'exec-path-env "osx")
|
||||||
(exec-path-from-shell-initialize)
|
(progn
|
||||||
exec-path)))
|
(require 'exec-path-from-shell)
|
||||||
|
(exec-path-from-shell-initialize)
|
||||||
|
(persistent-soft-store 'exec-path-env exec-path "osx")
|
||||||
|
exec-path))))
|
||||||
|
|
||||||
;; OSX Related Plugins ;;;;;;;;;;;;;;;;;
|
;; OSX Related Plugins ;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue