ui/zen: add +zen/toggle{,-fullscreen} commands

A more reliable "Distraction-free" fullscreen mode.
This commit is contained in:
Henrik Lissner 2021-02-24 15:51:41 -05:00
parent 14d341530a
commit 3e32379f54
4 changed files with 37 additions and 4 deletions

View file

@ -18,9 +18,11 @@
(after! writeroom-mode
;; Users should be able to activate writeroom-mode in one buffer (e.g. an org
;; buffer) and code in another. Fullscreening/maximizing will be opt-in.
;; buffer) and code in another. No global behavior should be applied.
;; Fullscreening/maximizing will be opt-in.
(defvar +zen--old-writeroom-global-effects writeroom-global-effects)
(setq writeroom-global-effects nil)
(setq writeroom-maximize-window nil)
(remove-hook 'writeroom-global-effects #'writeroom-set-fullscreen)
(add-hook! 'writeroom-mode-hook
(defun +zen-enable-text-scaling-mode-h ()