core-os: don't cache exec-path too aggressively
This commit is contained in:
parent
db7cf68775
commit
88454f58ec
1 changed files with 6 additions and 5 deletions
|
@ -31,10 +31,11 @@
|
|||
(cond ((display-graphic-p)
|
||||
;; `exec-path-from-shell' is slow, so bring out the cache
|
||||
(setq exec-path
|
||||
(or (persistent-soft-fetch 'exec-path "emacs")
|
||||
(and (require 'exec-path-from-shell nil t)
|
||||
(progn (exec-path-from-shell-initialize)
|
||||
(persistent-soft-store 'exec-path exec-path "emacs")))
|
||||
(eval-when-compile
|
||||
(require 'exec-path-from-shell nil t)
|
||||
(nconc exec-path-from-shell-variables '("GOPATH" "GOROOT" "PYTHONPATH"))
|
||||
(exec-path-from-shell-initialize)
|
||||
(persistent-soft-store 'exec-path exec-path "emacs")
|
||||
exec-path)))
|
||||
(t
|
||||
(when (require 'osx-clipboard nil t)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue