From 5e6ff689e0dcffbf012b5224219c027b0e109acf Mon Sep 17 00:00:00 2001 From: Leonardo Santiago Date: Sat, 31 May 2025 16:03:59 -0300 Subject: fix: fix `.envrc` --- modules/emacs/README.org | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'modules/emacs/README.org') diff --git a/modules/emacs/README.org b/modules/emacs/README.org index 54c1345..1e41cd4 100644 --- a/modules/emacs/README.org +++ b/modules/emacs/README.org @@ -120,7 +120,6 @@ Configuration to automagically open age files, and to encrypt them correctly to (nerd-icons-completion-mode)) (use-package nerd-icons-dired - :hook (dired-mode . nerd-icons-dired-mode) :diminish nerd-icons-dired :custom (dired-listing-switches "-alh")) @@ -130,7 +129,11 @@ Configuration to automagically open age files, and to encrypt them correctly to To integrate with nix shells. #+begin_src emacs-lisp :tangle yes (use-package envrc - :config (envrc-global-mode)) + :config + (envrc-global-mode) + ;; HACK: add emacs' `exec-path` back to `PATH` in order to keep + ;; envrc from deleting special entries added into emacs' `exec-path` on reload + (setenv "PATH" (mapconcat 'identity (cons (getenv "PATH") exec-path) ":"))) #+end_src ** Magit Configurations for magit -- cgit v1.2.3