From c956877165a9da602ecbacf8ad804361f1f1caca Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Sun, 13 Mar 2022 10:53:01 +0800 Subject: Load path earlier to help other scripts (emacs) --- .emacs.d/lisp/init-misc.el | 5 ----- .emacs.d/lisp/init-utils.el | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.emacs.d/lisp/init-misc.el b/.emacs.d/lisp/init-misc.el index ef79d74..97bb0b4 100644 --- a/.emacs.d/lisp/init-misc.el +++ b/.emacs.d/lisp/init-misc.el @@ -60,9 +60,4 @@ (with-eval-after-load 'undo-tree (gx/diminish 'undo-tree-mode)) -(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-misc) 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) -- cgit v1.2.3