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,11 +31,12 @@
|
||||||
(cond ((display-graphic-p)
|
(cond ((display-graphic-p)
|
||||||
;; `exec-path-from-shell' is slow, so bring out the cache
|
;; `exec-path-from-shell' is slow, so bring out the cache
|
||||||
(setq exec-path
|
(setq exec-path
|
||||||
(or (persistent-soft-fetch 'exec-path "emacs")
|
(eval-when-compile
|
||||||
(and (require 'exec-path-from-shell nil t)
|
(require 'exec-path-from-shell nil t)
|
||||||
(progn (exec-path-from-shell-initialize)
|
(nconc exec-path-from-shell-variables '("GOPATH" "GOROOT" "PYTHONPATH"))
|
||||||
(persistent-soft-store 'exec-path exec-path "emacs")))
|
(exec-path-from-shell-initialize)
|
||||||
exec-path)))
|
(persistent-soft-store 'exec-path exec-path "emacs")
|
||||||
|
exec-path)))
|
||||||
(t
|
(t
|
||||||
(when (require 'osx-clipboard nil t)
|
(when (require 'osx-clipboard nil t)
|
||||||
(osx-clipboard-mode +1))))
|
(osx-clipboard-mode +1))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue