mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Disable whitespace-mode in childframes
This commit is contained in:
@ -587,6 +587,14 @@ frame's window-system, the theme will be reloaded.")
|
|||||||
;; line numbers in most modes
|
;; line numbers in most modes
|
||||||
(add-hook! (prog-mode text-mode conf-mode) #'doom|enable-line-numbers)
|
(add-hook! (prog-mode text-mode conf-mode) #'doom|enable-line-numbers)
|
||||||
|
|
||||||
|
(after! whitespace
|
||||||
|
(defun doom*fix-whitespace-mode-in-childframes (orig-fn &rest args)
|
||||||
|
(with-selected-frame (apply orig-fn args)
|
||||||
|
(setq-local whitespace-style nil)
|
||||||
|
(selected-window)))
|
||||||
|
(advice-add #'company-box--make-frame :around #'doom*fix-whitespace-mode-in-childframes)
|
||||||
|
(advice-add #'posframe--create-posframe :around #'doom*fix-whitespace-mode-in-childframes))
|
||||||
|
|
||||||
;; ensure posframe cleans up after itself
|
;; ensure posframe cleans up after itself
|
||||||
(after! posframe
|
(after! posframe
|
||||||
;; TODO Find a better place for this
|
;; TODO Find a better place for this
|
||||||
|
Reference in New Issue
Block a user