[emacs] Disable auto formatting for hungryroot
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user