From 4055f667fb8176b26b9c4c013502ea45aec679d1 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 7 Mar 2019 19:43:37 -0500 Subject: [PATCH] Defer doom|disable-whitespace-mode-in-childframes --- core/core-ui.el | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/core/core-ui.el b/core/core-ui.el index b37eef231..52dd34660 100644 --- a/core/core-ui.el +++ b/core/core-ui.el @@ -578,16 +578,16 @@ startup (or theme switch) time, so long as `doom--prefer-theme-elc' is non-nil." it to fix all that visual noise." (unless (frame-parameter frame 'parent-frame) (funcall orig-fn))) - (add-function :around whitespace-enable-predicate #'doom*disable-whitespace-mode-in-childframes)) + (add-function :around whitespace-enable-predicate #'doom*disable-whitespace-mode-in-childframes) -(defun doom|disable-whitespace-mode-in-childframes (frame) - "`whitespace-mode' inundates child frames with whitspace markers, so disable + (defun doom|disable-whitespace-mode-in-childframes (frame) + "`whitespace-mode' inundates child frames with whitspace markers, so disable it to fix all that visual noise." - (when (frame-parameter frame 'parent-frame) - (with-selected-frame frame - (setq-local whitespace-style nil) - frame))) -(add-hook 'after-make-frame-functions #'doom|disable-whitespace-mode-in-childframes) + (when (frame-parameter frame 'parent-frame) + (with-selected-frame frame + (setq-local whitespace-style nil) + frame))) + (add-hook 'after-make-frame-functions #'doom|disable-whitespace-mode-in-childframes)) ;; Don't allow cursor to enter the prompt (setq minibuffer-prompt-properties '(read-only t intangible t cursor-intangible t face minibuffer-prompt))