Skip to content

Instantly share code, notes, and snippets.

Created August 20, 2010 07:03
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Luddite mode for emacs gives a few extra lines, when the tool-, menu- and scroll-bars are turned off.
;; first, remove all the crap that looks different from emacs 20.7.1
; luddite mode
(cond ((> emacs-major-version 20)
(tool-bar-mode -1) ; introduced in emacs 21
(menu-bar-mode -1)
(scroll-bar-mode -1)
(blink-cursor-mode -1)
(windmove-default-keybindings 'meta)))
; toggles luddite mode
(global-set-key [f12] '(lambda () (interactive) (menu-bar-mode nil) (scroll-bar-mode nil)))
(defun toggle-mode-line () "toggles the modeline on and off"
(setq mode-line-format
(if (equal mode-line-format nil)
(default-value 'mode-line-format)) )
(global-set-key [M-f12] 'toggle-mode-line)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment