diff --git a/init.el b/init.el index 0ce17c9..f2126b6 100644 --- a/init.el +++ b/init.el @@ -1696,6 +1696,8 @@ With PROJECT, give diagnostics for all buffers in the current project." (apheleia-formatters-respect-fill-column t) :init (add-to-list 'auto-mode-alist `(,(rx "/.clang-format" eos) . yaml-ts-mode)) + (defun my/apheleia-disable-in-current-buffer () + (apheleia-mode -1)) :config (apheleia-global-mode 1) (add-to-list 'apheleia-formatters @@ -2464,7 +2466,7 @@ line in the block and manually deal with indentation." (defun my/format-only-when-sly-running () "Make apheleia-mode format Lisp buffers only when sly is running." (add-to-list (make-local-variable 'apheleia-skip-functions) - #'my/-apheleia-sly-skip-function)) + #'my/apheleia-sly-skip-function)) (with-eval-after-load 'lisp-mode (add-hook 'lisp-mode-hook #'my/format-only-when-sly-running))