Auto-disable solaire-global-mode in tty daemon frames
Or try, at least. This is very flimsy.
This commit is contained in:
parent
6c7bd1a94a
commit
279ca195d5
1 changed files with 7 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue