summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2016-10-27 00:05:54 -0400
committerKyle Meyer <kyle@kyleam.com>2016-10-27 00:05:54 -0400
commitbcb0a3b9a999a10c59599f2e543b3b46d6dc2501 (patch)
tree627f06579f67c9569b6f141466f05bb8628e4f19
parent595596be916f9c4154d3dd2ec0c67d3435e9abcf (diff)
downloademacs.d-bcb0a3b9a999a10c59599f2e543b3b46d6dc2501.tar.gz
Add writeroom-toggle-fullscreen command
-rw-r--r--init.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/init.el b/init.el
index 535ed67..c22e0a4 100644
--- a/init.el
+++ b/init.el
@@ -1685,6 +1685,13 @@
(setq writeroom-fullscreen-effect 'maximized)
(setq writeroom-width fill-column)
+ (defun km/writeroom-toggle-fullscreen ()
+ (interactive)
+ (setq writeroom-fullscreen-effect
+ (if (eq writeroom-fullscreen-effect 'fullboth)
+ 'maximized
+ 'fullboth)))
+
(defvar-local km/writeroom-old-truncate-lines nil)
(defun km/writeroom-setup ()