default to paragraph-at-point for special-mode

Both eww-mode and gnus-article-mode derive from special-mode, it makes sense to use paragraph mode for these. The other special-modes don't seem like the kind where you'd want focus-mode on.

(`grep -Rohan 'define-derived-mode.*special-mode' lisp/` in emacs sources to see other things deriving from special-mode)
This commit is contained in:
Kevin Brubeck Unhammer 2024-10-24 13:10:51 +02:00 committed by GitHub
parent 17c471544f
commit 93e943ee5c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -40,6 +40,7 @@
(defcustom focus-mode-to-thing '((prog-mode . defun) (defcustom focus-mode-to-thing '((prog-mode . defun)
(text-mode . paragraph) (text-mode . paragraph)
(special-mode . paragraph)
(org-mode . org-element)) (org-mode . org-element))
"An associated list between mode and thing. "An associated list between mode and thing.