module(doom): Fix envrc.el cannot keep nix packages

This commit is contained in:
ulic-youthlic 2025-07-13 06:04:55 +08:00
parent 9942ce62ab
commit 6933595b62
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721

View file

@ -28,3 +28,16 @@
(add-hook 'telega-load-hook
'telega-notifications-mode)
(defvar my/emacs-deps-exec-path (seq-filter
(lambda (p)
(string-match-p
"/nix/store/.*-emacs-packages-deps/bin"
p))
exec-path))
(advice-add #'envrc--update
:after #'(lambda ()
(setq exec-path
(append exec-path
my/emacs-deps-exec-path))))