diff --git a/emacs/.config/doom/config.el b/emacs/.config/doom/config.el index c20c90e..1a851a0 100644 --- a/emacs/.config/doom/config.el +++ b/emacs/.config/doom/config.el @@ -5,6 +5,9 @@ (nyan-mode) +(after! envrc + (envrc-global-mode)) + ;; load pinentry (when (require 'pinentry nil t) (pinentry-start)) @@ -472,3 +475,12 @@ Always open the result in `eww`." (advice-remove 'magit-pull #'my/ensure-ssh-keys-loaded) (advice-add 'magit-pull :before #'my/ensure-ssh-keys-loaded)) +(defun my/disable-apheleia-in-certain-projects () + (when-let ((root (and (fboundp 'project-root) + (project-root (project-current))))) + (when (member (file-name-nondirectory + (directory-file-name root)) + '("hungryroot")) + (apheleia-mode -1)))) + +(add-hook 'find-file-hook #'my/disable-apheleia-in-certain-projects)