From 4cd4372401b40620df799006476c644053537ea9 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Thu, 21 Dec 2023 10:20:15 +0000 Subject: [PATCH] Switch apheleia to prog-mode hook instead of global-mode --- README.org | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.org b/README.org index 94fbdbf..fe48a41 100644 --- a/README.org +++ b/README.org @@ -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