diff --git a/core/core-ui.el b/core/core-ui.el index a3498cf4f..da17eeafe 100644 --- a/core/core-ui.el +++ b/core/core-ui.el @@ -142,7 +142,7 @@ Does nothing if `whitespace-mode' or 'global-whitespace-mode' is already active or if the current buffer is read-only or not file-visiting." (unless (or (eq major-mode 'fundamental-mode) buffer-read-only - global-whitespace-mode + (bound-and-true-p global-whitespace-mode) (null buffer-file-name)) (require 'whitespace) (set (make-local-variable 'whitespace-style)