mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
:fullscreen! toggles writeroom
This commit is contained in:
@ -11,10 +11,12 @@
|
|||||||
(set-frame-parameter nil 'alpha 0))))
|
(set-frame-parameter nil 'alpha 0))))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun narf:toggle-fullscreen ()
|
(evil-define-command narf:toggle-fullscreen (&optional bang)
|
||||||
(interactive)
|
(interactive "<!>")
|
||||||
|
(if bang
|
||||||
|
(writeroom-mode (if writeroom-mode -1 1))
|
||||||
(set-frame-parameter nil 'fullscreen
|
(set-frame-parameter nil 'fullscreen
|
||||||
(when (not (frame-parameter nil 'fullscreen)) 'fullboth)))
|
(when (not (frame-parameter nil 'fullscreen)) 'fullboth))))
|
||||||
|
|
||||||
(defvar narf--big-mode nil)
|
(defvar narf--big-mode nil)
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
|
Reference in New Issue
Block a user