Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove menu bar and switch to fullscreen as well #2

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions darkroom.el
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ window's geometry."
(defconst darkroom--saved-variables
'(mode-line-format
header-line-format
menu-bar-mode
fringes-outside-margins)
"Variables saved in `darkroom--saved-state'")

Expand All @@ -291,6 +292,8 @@ With optional JUST-MARGINS, just set the margins."
(setq mode-line-format nil
header-line-format nil
fringes-outside-margins darkroom-fringes-outside-margins)
(menu-bar-mode -1)
(set-frame-parameter nil 'fullscreen 'fullboth)
(text-scale-increase darkroom-text-scale-increase))
(mapc #'(lambda (w)
(with-selected-window w
Expand All @@ -302,6 +305,8 @@ With optional JUST-MARGINS, just set the margins."
(mapc #'(lambda (pair)
(set (make-local-variable (car pair)) (cdr pair)))
darkroom--saved-state)
(menu-bar-mode menu-bar-mode)
(set-frame-parameter nil 'fullscreen nil)
(setq darkroom--saved-state nil)
(text-scale-decrease darkroom-text-scale-increase)
(mapc #'(lambda (w)
Expand Down