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,11 +31,12 @@
|
|||
(cond ((display-graphic-p)
|
||||
;; `exec-path-from-shell' is slow, so bring out the cache
|
||||
(setq exec-path
|
||||
(eval-when-compile
|
||||
(require 'exec-path-from-shell nil t)
|
||||
(or (eval-when-compile
|
||||
(when (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))
|
||||
exec-path)))
|
||||
(t
|
||||
(when (require 'osx-clipboard nil t)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue