From e2a622353bfa2395b0339f0769a9727fc1562469 Mon Sep 17 00:00:00 2001 From: Uko Kokņevičs Date: Fri, 17 Oct 2025 03:46:23 +0300 Subject: emacs: Move exec-path-from-shell to be as early as possible --- emacs/.config/emacs/init.el | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/emacs/.config/emacs/init.el b/emacs/.config/emacs/init.el index 2a8f7ac..560053f 100644 --- a/emacs/.config/emacs/init.el +++ b/emacs/.config/emacs/init.el @@ -172,6 +172,14 @@ (eval-print-last-sexp))) (load bootstrap-file)) +(use-package exec-path-from-shell + ;; If any other environment variables are needed, they can be added to exec-path-from-shell-variables + :straight t + :custom + (exec-path-from-shell-variables '("PATH" "MANPATH" "SSH_AUTH_SOCK" "SSH_AGENT_PID" "GPG_AGENT_INFO" "LANG" "LC_CTYPE" "NIX_SSL_CERT_FILE" "NIX_PATH")) + :config + (exec-path-from-shell-initialize)) + (defun arkta/update-packages () (interactive) (straight-pull-all) @@ -302,14 +310,6 @@ ;; This actually has to be hooked to after-init to be one of the first minor modes enabled :hook (after-init . envrc-global-mode)) -(use-package exec-path-from-shell - ;; If any other environment variables are needed, they can be added to exec-path-from-shell-variables - :straight t - :custom - (exec-path-from-shell-variables '("PATH" "MANPATH" "SSH_AUTH_SOCK" "SSH_AGENT_PID" "GPG_AGENT_INFO" "LANG" "LC_CTYPE" "NIX_SSL_CERT_FILE" "NIX_PATH")) - :config - (exec-path-from-shell-initialize)) - (use-package gcmh :straight t :custom -- cgit v1.2.3