mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Don't byte-compile exec-path on MacOS
This commit is contained in:
@ -36,15 +36,11 @@
|
|||||||
;; environment, so envvars will be wrong. That includes the PATH
|
;; environment, so envvars will be wrong. That includes the PATH
|
||||||
;; Emacs picks up. `exec-path-from-shell' fixes this. This is slow
|
;; Emacs picks up. `exec-path-from-shell' fixes this. This is slow
|
||||||
;; and benefits greatly from compilation.
|
;; and benefits greatly from compilation.
|
||||||
(setq exec-path
|
(when (require 'exec-path-from-shell nil t)
|
||||||
(or (eval-when-compile
|
(setq exec-path-from-shell-check-startup-files nil
|
||||||
(when (require 'exec-path-from-shell nil t)
|
exec-path-from-shell-arguments (delete "-i" exec-path-from-shell-arguments))
|
||||||
(setq exec-path-from-shell-check-startup-files nil
|
(nconc exec-path-from-shell-variables '("GOPATH" "GOROOT" "PYTHONPATH"))
|
||||||
exec-path-from-shell-arguments (delete "-i" exec-path-from-shell-arguments))
|
(exec-path-from-shell-initialize)))
|
||||||
(nconc exec-path-from-shell-variables '("GOPATH" "GOROOT" "PYTHONPATH"))
|
|
||||||
(exec-path-from-shell-initialize)
|
|
||||||
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)))))
|
||||||
|
Reference in New Issue
Block a user