mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
ui/zen: add +zen/toggle{,-fullscreen} commands
A more reliable "Distraction-free" fullscreen mode.
This commit is contained in:
@ -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 ()
|
||||
|
Reference in New Issue
Block a user