mirror of
https://github.com/protesilaos/dotfiles.git
synced 2026-09-10 07:16:20 -04:00
emacs: make the modeline narrow indicator check only major mode, not derivatives
This commit is contained in:
parent
5112e1a074
commit
805ab6c121
|
|
@ -14326,7 +14326,7 @@ Specific to the current window's mode line.")
|
|||
'(:eval
|
||||
(when (and (mode-line-window-selected-p)
|
||||
(buffer-narrowed-p)
|
||||
(not (derived-mode-p 'Info-mode 'help-mode 'special-mode 'message-mode)))
|
||||
(not (memq major-mode '(Info-mode help-mode message-mode special-mode))))
|
||||
(propertize " Narrow " 'face 'prot-modeline-indicator-cyan-bg)))
|
||||
"Mode line construct to report the narrowed state of the current buffer.")
|
||||
|
||||
|
|
|
|||
|
|
@ -275,7 +275,7 @@ Specific to the current window's mode line.")
|
|||
'(:eval
|
||||
(when (and (mode-line-window-selected-p)
|
||||
(buffer-narrowed-p)
|
||||
(not (derived-mode-p 'Info-mode 'help-mode 'special-mode 'message-mode)))
|
||||
(not (memq major-mode '(Info-mode help-mode message-mode special-mode))))
|
||||
(propertize " Narrow " 'face 'prot-modeline-indicator-cyan-bg)))
|
||||
"Mode line construct to report the narrowed state of the current buffer.")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue