[emacs] Disable auto formatting for hungryroot

This commit is contained in:
2026-01-14 17:35:39 -05:00
parent 8e7031ff68
commit 0e486edf9f

View File

@ -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)