No prettify-symbols-mode in special modes

Fixes issues with magit popups losing their color.
This commit is contained in:
Henrik Lissner 2018-07-12 16:43:37 +02:00
parent 1fc43dacfc
commit 0c63298253
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -24,7 +24,8 @@ modes, this function does nothing.
Otherwise it builds `prettify-code-symbols-alist' according to Otherwise it builds `prettify-code-symbols-alist' according to
`+pretty-code-symbols-alist' for the current major-mode." `+pretty-code-symbols-alist' for the current major-mode."
(unless (or (eq major-mode 'fundamental-mode) (unless (or (eq major-mode 'fundamental-mode)
(derived-mode-p 'special-mode 'comint-mode 'eshell-mode 'term-mode)) (eq (get major-mode 'mode-class) 'special)
(derived-mode-p 'comint-mode 'eshell-mode 'term-mode))
(when (or (eq +pretty-code-enabled-modes t) (when (or (eq +pretty-code-enabled-modes t)
(if (eq (car +pretty-code-enabled-modes) 'not) (if (eq (car +pretty-code-enabled-modes) 'not)
(not (memq major-mode (cdr +pretty-code-enabled-modes))) (not (memq major-mode (cdr +pretty-code-enabled-modes)))