Load core-os sooner & in all sessions

Indirectly fixes set-env! errors when using it from your init files.
This commit is contained in:
Henrik Lissner 2018-06-18 12:04:30 +02:00
parent 1c4f785df1
commit 0d925cda5e
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 7 additions and 9 deletions

View file

@ -15,6 +15,12 @@
(defmacro set-env! (&rest _vars)
"Inject VARS from your shell environment into Emacs.")
;; FIXME obsolete :env
(def-setting! :env (&rest vars)
:obsolete set-env!
(when (featurep 'exec-path-from-shell)
`(exec-path-from-shell-copy-envs ,@vars)))
(cond (IS-MAC
(setq mac-command-modifier 'meta
mac-option-modifier 'alt