Switch apheleia to prog-mode hook instead of global-mode
This commit is contained in:
parent
3575a09192
commit
4cd4372401
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue