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:
Henrik Lissner 2024-09-11 13:30:23 -04:00
parent 240493ae92
commit a8515034de
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -661,11 +661,11 @@ triggering hooks during startup."
(fset 'set-fontset-font #'ignore))
(after! whitespace
(defun doom-is-childframes-p ()
(defun doom--in-parent-frame-p ()
"`whitespace-mode' inundates child frames with whitespace markers, so
disable it to fix all that visual noise."
(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)
;;; doom-ui.el ends here