feat(lib): doom-special-buffer-p: consider special-mode parents

This commit is contained in:
Henrik Lissner 2026-02-20 20:02:43 -05:00
parent 279d27a981
commit 28cb499225
No known key found for this signature in database
GPG key ID: B60957CA074D39A3
3 changed files with 9 additions and 10 deletions

View file

@ -62,7 +62,7 @@ be enabled. If any function returns non-nil, the mode will not be activated."
(and (not (derived-mode-p 'text-mode 'prog-mode 'conf-mode))
(or buffer-read-only
(bound-and-true-p cursor-intangible-mode)
(derived-mode-p 'special-mode))))
(doom-special-buffer-p (current-buffer) t))))
;; Org's virtual indentation messes up indent-guides.
(defun +indent-guides-in-org-indent-mode-p ()
(bound-and-true-p org-indent-mode))