mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user