fix: global whitespace-mode never activating

Fix: #5856
Fix: #5854
This commit is contained in:
Henrik Lissner 2021-12-02 04:10:26 +01:00
parent d981447674
commit eefa0ec0aa

View file

@ -648,7 +648,7 @@ windows, switch to `doom-fallback-buffer'. Otherwise, delegate to original
(defun doom-is-childframes-p ()
"`whitespace-mode' inundates child frames with whitespace markers, so
disable it to fix all that visual noise."
(frame-parameter nil 'parent-frame))
(null (frame-parameter nil 'parent-frame)))
(add-function :before-while whitespace-enable-predicate #'doom-is-childframes-p))
(provide 'core-ui)