From 2bf518fab7ad0b8d0146a551291f1c34e0660821 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Tue, 11 May 2021 09:45:42 -0500 Subject: Add `org-mode' to `stupid-modes' for `dumb-auto-format' To keep hanging list items from indenting at save. --- init.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init.el b/init.el index af817ee..ddbb53f 100644 --- a/init.el +++ b/init.el @@ -617,7 +617,8 @@ ;; Use a dumb formatter on modes that `apheleia' doesn't work for. (hook-defun dumb-auto-format before-save-hook - (setq stupid-modes '(makefile-mode)) + (setq stupid-modes '(makefile-mode + org-mode)) ;; If there's no apheleia formatter for the mode, just indent the buffer. (unless (or (apply #'derived-mode-p stupid-modes) (and (fboundp 'apheleia--get-formatter-command) -- cgit 1.4.1-21-gabe81