diff options
author | Guangxiong Lin <[email protected]> | 2022-03-13 10:53:01 +0800 |
---|---|---|
committer | Guangxiong Lin <[email protected]> | 2022-03-13 10:53:01 +0800 |
commit | c956877165a9da602ecbacf8ad804361f1f1caca (patch) | |
tree | 8327d01c749b5ed82cbb44365413bfd9d71bec54 /.emacs.d/lisp/init-utils.el | |
parent | 7da4e7a4597ee1129c5bc7df40b4e4e586ff5edd (diff) | |
download | dotfiles-c956877165a9da602ecbacf8ad804361f1f1caca.tar.gz dotfiles-c956877165a9da602ecbacf8ad804361f1f1caca.tar.bz2 dotfiles-c956877165a9da602ecbacf8ad804361f1f1caca.zip |
Load path earlier to help other scripts (emacs)
Diffstat (limited to '.emacs.d/lisp/init-utils.el')
-rw-r--r-- | .emacs.d/lisp/init-utils.el | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/.emacs.d/lisp/init-utils.el b/.emacs.d/lisp/init-utils.el index 2f4118c..dd3713d 100644 --- a/.emacs.d/lisp/init-utils.el +++ b/.emacs.d/lisp/init-utils.el @@ -2,4 +2,9 @@ (when (gx/maybe-require-package 'diminish) (diminish mode to-what))) +(setq exec-path-from-shell-arguments '("-l")) +(when (gx/maybe-require-package 'exec-path-from-shell) + (when (memq window-system '(mac ns)) + (exec-path-from-shell-initialize))) + (provide 'init-utils) |