Don't byte-compile exec-path on MacOS

This commit is contained in:
Henrik Lissner 2018-02-27 22:39:10 -05:00
parent 606b4695cc
commit cacf13f226
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -36,15 +36,11 @@
;; environment, so envvars will be wrong. That includes the PATH
;; Emacs picks up. `exec-path-from-shell' fixes this. This is slow
;; and benefits greatly from compilation.
(setq exec-path
(or (eval-when-compile
(when (require 'exec-path-from-shell nil t)
(setq exec-path-from-shell-check-startup-files nil
exec-path-from-shell-arguments (delete "-i" exec-path-from-shell-arguments))
(nconc exec-path-from-shell-variables '("GOPATH" "GOROOT" "PYTHONPATH"))
(exec-path-from-shell-initialize)
exec-path))
exec-path)))
(exec-path-from-shell-initialize)))
(t
(when (require 'osx-clipboard nil t)
(osx-clipboard-mode +1)))))