mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Auto-disable solaire-global-mode in tty daemon frames
Or try, at least. This is very flimsy.
This commit is contained in:
@ -33,6 +33,13 @@
|
|||||||
(solaire-mode-swap-bg)))
|
(solaire-mode-swap-bg)))
|
||||||
#'solaire-global-mode)
|
#'solaire-global-mode)
|
||||||
:config
|
:config
|
||||||
|
(when (daemonp)
|
||||||
|
(add-hook! 'doom-switch-frame-hook
|
||||||
|
(defun +doom-disable-solaire-mode-maybe-h (frame)
|
||||||
|
(if (display-graphic-p frame)
|
||||||
|
(solaire-global-mode +1)
|
||||||
|
(solaire-global-mode -1)))))
|
||||||
|
|
||||||
;; org-capture takes an org buffer and narrows it. The result is erroneously
|
;; org-capture takes an org buffer and narrows it. The result is erroneously
|
||||||
;; considered an unreal buffer, so solaire-mode must be restored.
|
;; considered an unreal buffer, so solaire-mode must be restored.
|
||||||
(add-hook 'org-capture-mode-hook #'turn-on-solaire-mode)
|
(add-hook 'org-capture-mode-hook #'turn-on-solaire-mode)
|
||||||
|
Reference in New Issue
Block a user