Respect dir-locals in eshell

This commit is contained in:
Jeremy Dormitzer 2021-02-20 22:21:49 -05:00
parent bb0d50e579
commit 623e270f49

View File

@ -38,6 +38,10 @@
(setq jdormit-eshell-prompt-regex "^[^#λ\n]* [#λ] ")
(setq eshell-prompt-function 'jdormit-eshell-prompt)
(setq eshell-prompt-regexp jdormit-eshell-prompt-regex)
;; Load dir-locals when switching directories
(add-hook 'eshell-mode-hook #'hack-dir-local-variables-non-file-buffer)
(add-hook 'eshell-after-prompt-hook #'hack-dir-local-variables-non-file-buffer)
:general
(leader-map "'" #'open-eshell)
:custom