Switch apheleia to prog-mode hook instead of global-mode

This commit is contained in:
Evie Litherland-Smith 2023-12-21 10:20:15 +00:00
parent 3575a09192
commit 4cd4372401

View file

@ -742,11 +742,11 @@ For reference information, see [[https://orgmode.com][Org-mode website]]
:ensure t
:defer nil
:bind (("C-c c f" . apheleia-format-buffer))
:hook (prog-mode)
:custom (apheleia-remote-algorithm 'local)
:config
(add-to-list 'apheleia-mode-alist '(python-ts-mode . ruff))
(add-to-list 'apheleia-mode-alist '(python-mode . ruff))
(apheleia-global-mode +1))
(add-to-list 'apheleia-mode-alist '(python-mode . ruff)))
#+end_src
** Flymake
#+begin_src emacs-lisp :tangle yes