summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2021-05-11 09:45:42 -0500
committerCase Duckworth2021-05-11 09:45:42 -0500
commit2bf518fab7ad0b8d0146a551291f1c34e0660821 (patch)
tree39790a6e367def260806b9f08c8b969bba630f73
parentAdd `acdw/system' macro (diff)
downloademacs-2bf518fab7ad0b8d0146a551291f1c34e0660821.tar.gz
emacs-2bf518fab7ad0b8d0146a551291f1c34e0660821.zip
Add `org-mode' to `stupid-modes' for `dumb-auto-format'
To keep hanging list items from indenting at save.
-rw-r--r--init.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/init.el b/init.el index af817ee..ddbb53f 100644 --- a/init.el +++ b/init.el
@@ -617,7 +617,8 @@
617 617
618 ;; Use a dumb formatter on modes that `apheleia' doesn't work for. 618 ;; Use a dumb formatter on modes that `apheleia' doesn't work for.
619 (hook-defun dumb-auto-format before-save-hook 619 (hook-defun dumb-auto-format before-save-hook
620 (setq stupid-modes '(makefile-mode)) 620 (setq stupid-modes '(makefile-mode
621 org-mode))
621 ;; If there's no apheleia formatter for the mode, just indent the buffer. 622 ;; If there's no apheleia formatter for the mode, just indent the buffer.
622 (unless (or (apply #'derived-mode-p stupid-modes) 623 (unless (or (apply #'derived-mode-p stupid-modes)
623 (and (fboundp 'apheleia--get-formatter-command) 624 (and (fboundp 'apheleia--get-formatter-command)