module(doom): Fix envrc.el cannot keep nix packages
This commit is contained in:
parent
9942ce62ab
commit
6933595b62
1 changed files with 13 additions and 0 deletions
|
|
@ -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))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue