Fix void-variable frame error w/ whitespace-mode

Fixes #1242
This commit is contained in:
Henrik Lissner 2019-03-11 19:11:10 -04:00
parent 867f94e23a
commit fe28c40371
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -576,7 +576,7 @@ startup (or theme switch) time, so long as `doom--prefer-theme-elc' is non-nil."
(defun doom*disable-whitespace-mode-in-childframes (orig-fn)
"`whitespace-mode' inundates child frames with whitspace markers, so disable
it to fix all that visual noise."
(unless (frame-parameter frame 'parent-frame)
(unless (frame-parameter nil 'parent-frame)
(funcall orig-fn)))
(add-function :around whitespace-enable-predicate #'doom*disable-whitespace-mode-in-childframes)