Set exec-path-from-shell-debug instead of aliasing

Also fixes the defvaralias error that occurs on the latest Emacs (but
only on MacOS).
This commit is contained in:
Henrik Lissner 2018-06-17 21:41:44 +02:00
parent 97b42c449b
commit 68903ae398
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -39,8 +39,8 @@
"Inject VARS from your shell environment into Emacs."
(exec-path-from-shell-copy-envs vars))
(setq exec-path-from-shell-check-startup-files nil
exec-path-from-shell-arguments (delete "-i" exec-path-from-shell-arguments))
(defvaralias 'exec-path-from-shell-debug 'doom-debug-mode)
exec-path-from-shell-arguments (delete "-i" exec-path-from-shell-arguments)
exec-path-from-shell-debug doom-debug-mode)
(exec-path-from-shell-initialize))))
(IS-LINUX