mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-08 15:23:35 -05:00
ui/doom: refactor
This commit is contained in:
@@ -7,5 +7,21 @@
|
||||
(let ((theme (or (car-safe custom-enabled-themes) +doom-theme)))
|
||||
(when theme
|
||||
(mapc #'disable-theme custom-enabled-themes))
|
||||
(load-theme theme t)))
|
||||
(load-theme theme t)
|
||||
(+doom|refresh-bright-buffers)))
|
||||
|
||||
;;;###autoload
|
||||
(defun +doom|restore-bright-buffers (&rest _)
|
||||
"Restore `doom-buffer-mode' in buffers when `persp-mode' loads a session."
|
||||
(dolist (buf (persp-buffer-list))
|
||||
(with-current-buffer buf
|
||||
(+doom|buffer-mode-on))))
|
||||
|
||||
;;;###autoload
|
||||
(defun +doom|refresh-bright-buffers ()
|
||||
"Refresh `doom-buffer-mode', in case of graphical glitches."
|
||||
(dolist (win (window-list))
|
||||
(when (buffer-local-value 'doom-buffer-mode (window-buffer win))
|
||||
(with-selected-window win
|
||||
(doom-buffer-mode -1)
|
||||
(doom-buffer-mode +1)))))
|
||||
|
Reference in New Issue
Block a user