Skip to content

Instantly share code, notes, and snippets.

@pierrel
Created September 7, 2011 21:07
Show Gist options
  • Save pierrel/1201732 to your computer and use it in GitHub Desktop.
Save pierrel/1201732 to your computer and use it in GitHub Desktop.
minimal .emacs
;; taken from http://snarfed.org/minimal_emacs_for_fast_startup
; cutoff for word wrap
(setq-default fill-column 79)
; F12 toggles auto-fill mode
(global-set-key [f12] 'auto-fill-mode)
; C-- keybinding for undo (removes the shift)
(global-set-key [(control -)] 'undo)
; turn on pending delete (when a region
; is selected, typing replaces it)
(delete-selection-mode t)
; when on a tab, make the cursor the tab length
(setq-default x-stretch-cursor t)
; avoid garbage collection (default is only 400k)
(setq-default gc-cons-threshold 4000000)
; turn on random customization options
(custom-set-variables
'(sentence-end-double-space nil)
'(truncate-partial-width-windows nil)
'(line-number-mode t)
'(column-number-mode t)
'(query-user-mail-address nil)
'(visible-bell t))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment