core-os: add exec-path failsafe
This commit is contained in:
parent
733f371607
commit
c6a61b9b2c
1 changed files with 7 additions and 6 deletions
|
@ -31,12 +31,13 @@
|
||||||
(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
|
||||||
(eval-when-compile
|
(or (eval-when-compile
|
||||||
(require 'exec-path-from-shell nil t)
|
(when (require 'exec-path-from-shell nil t)
|
||||||
(nconc exec-path-from-shell-variables '("GOPATH" "GOROOT" "PYTHONPATH"))
|
(nconc exec-path-from-shell-variables '("GOPATH" "GOROOT" "PYTHONPATH"))
|
||||||
(exec-path-from-shell-initialize)
|
(exec-path-from-shell-initialize)
|
||||||
(persistent-soft-store 'exec-path exec-path "emacs")
|
(persistent-soft-store 'exec-path exec-path "emacs")
|
||||||
exec-path)))
|
exec-path))
|
||||||
|
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