Created
November 12, 2014 18:44
-
-
Save viperscape/dd22595d46f7da1327b9 to your computer and use it in GitHub Desktop.
toggle cleanmode (no menu,scroll,toolbars)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(set 'cleanmode 1) | |
(defun toggle-cleanmode () | |
"toggles clean mode" | |
(interactive) | |
(cond ((not cleanmode) | |
(menu-bar-mode -1) | |
(tool-bar-mode -1) | |
(scroll-bar-mode -1) | |
(set 'cleanmode 1)) | |
((eq 1 cleanmode) | |
(menu-bar-mode) | |
(tool-bar-mode) | |
(scroll-bar-mode) | |
(set 'cleanmode nil)))) | |
(global-set-key [f11] 'toggle-cleanmode) | |
(toggle-cleanmode) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment