ui/zen: add +zen/toggle{,-fullscreen} commands
A more reliable "Distraction-free" fullscreen mode.
This commit is contained in:
parent
14d341530a
commit
3e32379f54
4 changed files with 37 additions and 4 deletions
|
@ -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 ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue