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 :ensure t
:defer nil :defer nil
:bind (("C-c c f" . apheleia-format-buffer)) :bind (("C-c c f" . apheleia-format-buffer))
:hook (prog-mode)
:custom (apheleia-remote-algorithm 'local) :custom (apheleia-remote-algorithm 'local)
:config :config
(add-to-list 'apheleia-mode-alist '(python-ts-mode . ruff)) (add-to-list 'apheleia-mode-alist '(python-ts-mode . ruff))
(add-to-list 'apheleia-mode-alist '(python-mode . ruff)) (add-to-list 'apheleia-mode-alist '(python-mode . ruff)))
(apheleia-global-mode +1))
#+end_src #+end_src
** Flymake ** Flymake
#+begin_src emacs-lisp :tangle yes #+begin_src emacs-lisp :tangle yes