mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Fix #3604: wrong indent-guide color in daemon frames
This commit is contained in:
@ -5,7 +5,7 @@
|
|||||||
:init
|
:init
|
||||||
(setq highlight-indent-guides-method 'character)
|
(setq highlight-indent-guides-method 'character)
|
||||||
:config
|
:config
|
||||||
(defun +indent-guides-init-faces-h ()
|
(defun +indent-guides-init-faces-h (&rest _)
|
||||||
(when (display-graphic-p)
|
(when (display-graphic-p)
|
||||||
(highlight-indent-guides-auto-set-faces)))
|
(highlight-indent-guides-auto-set-faces)))
|
||||||
|
|
||||||
@ -13,10 +13,9 @@
|
|||||||
;; but is unable to do so properly in terminal Emacs, where it only has
|
;; but is unable to do so properly in terminal Emacs, where it only has
|
||||||
;; access to 256 colors. So if the user uses a daemon we must wait for
|
;; access to 256 colors. So if the user uses a daemon we must wait for
|
||||||
;; the first graphical frame to be available to do.
|
;; the first graphical frame to be available to do.
|
||||||
(add-hook (if (daemonp)
|
(add-hook 'doom-load-theme-hook #'+indent-guides-init-faces-h)
|
||||||
'server-after-make-frame-hook
|
(when doom-init-theme-p
|
||||||
'doom-load-theme-hook)
|
(+indent-guides-init-faces-h))
|
||||||
#'+indent-guides-init-faces-h)
|
|
||||||
|
|
||||||
;; `highlight-indent-guides' breaks when `org-indent-mode' is active
|
;; `highlight-indent-guides' breaks when `org-indent-mode' is active
|
||||||
(add-hook! 'org-mode-local-vars-hook
|
(add-hook! 'org-mode-local-vars-hook
|
||||||
|
Reference in New Issue
Block a user