Fix solaire-mode auto-disabler for daemon users
Hopefully.
This commit is contained in:
parent
d5d0ec3c91
commit
98f69ee3cf
1 changed files with 3 additions and 3 deletions
|
@ -27,9 +27,9 @@
|
|||
:hook (doom-load-theme . solaire-global-mode)
|
||||
:config
|
||||
(when (daemonp)
|
||||
(add-hook! 'doom-switch-frame-hook
|
||||
(defun +doom-disable-solaire-mode-maybe-h ()
|
||||
(if (display-graphic-p)
|
||||
(add-hook! '(doom-switch-frame-hook after-make-frame-functions)
|
||||
(defun +doom-disable-solaire-mode-maybe-h (&optional frame)
|
||||
(if (display-graphic-p frame)
|
||||
(unless solaire-global-mode
|
||||
(solaire-global-mode +1))
|
||||
(when solaire-global-mode
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue