refactor: rename childframe predicate function
- The name reflected the opposite of what it detected. - It should be treated as an internal (not public) function.
This commit is contained in:
parent
240493ae92
commit
a8515034de
1 changed files with 2 additions and 2 deletions
|
@ -661,11 +661,11 @@ triggering hooks during startup."
|
||||||
(fset 'set-fontset-font #'ignore))
|
(fset 'set-fontset-font #'ignore))
|
||||||
|
|
||||||
(after! whitespace
|
(after! whitespace
|
||||||
(defun doom-is-childframes-p ()
|
(defun doom--in-parent-frame-p ()
|
||||||
"`whitespace-mode' inundates child frames with whitespace markers, so
|
"`whitespace-mode' inundates child frames with whitespace markers, so
|
||||||
disable it to fix all that visual noise."
|
disable it to fix all that visual noise."
|
||||||
(null (frame-parameter nil 'parent-frame)))
|
(null (frame-parameter nil 'parent-frame)))
|
||||||
(add-function :before-while whitespace-enable-predicate #'doom-is-childframes-p))
|
(add-function :before-while whitespace-enable-predicate #'doom--in-parent-frame-p))
|
||||||
|
|
||||||
(provide 'doom-ui)
|
(provide 'doom-ui)
|
||||||
;;; doom-ui.el ends here
|
;;; doom-ui.el ends here
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue