branch: externals/colorful-mode commit 68eb60549c998f7c3fb42c7db46cbe7400871252 Author: Elías Gabriel Pérez <eg642...@gmail.com> Commit: Elías Gabriel Pérez <eg642...@gmail.com>
Disable colorful in `list-colors-display' and `list-faces-display'. Disable colorful in `list-colors-display' and `list-faces-display' buffers since it breaks them (github#15). * colorful-mode.el (colorful-mode): Blacklist "*Faces*" and "*Colors*" buffers. --- colorful-mode.el | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/colorful-mode.el b/colorful-mode.el index e9b23e9b64..18521b2f67 100644 --- a/colorful-mode.el +++ b/colorful-mode.el @@ -972,11 +972,14 @@ This is intended to be used with `colorful-extra-color-keyword-functions'." (define-minor-mode colorful-mode "Preview any color in your buffer such as hex, color names, CSS rgb in real time." :global nil - (if colorful-mode - (colorful--turn-on) - (colorful--turn-off)) - ;; Refresh font-lock - (font-lock-flush)) + ;; Do not activate it in these buffers. + (unless (or (string= (buffer-name) "*Faces*") + (string= (buffer-name) "*Colors*")) + (if colorful-mode + (colorful--turn-on) + (colorful--turn-off)) + ;; Refresh font-lock + (font-lock-flush))) ;; Silence a byte-compile warning about global-colorful-modes not ;; being defined