Skip to content

Instantly share code, notes, and snippets.

@lukaszkorecki
Created January 27, 2010 12:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukaszkorecki/287806 to your computer and use it in GitHub Desktop.
Save lukaszkorecki/287806 to your computer and use it in GitHub Desktop.
; This seems to do the trick:
; - displays 4 spaces (or 2) as 2-space indent
; - inserts 2 spaces and indents by two
; I know it's weird ;-)
; indent settings
(setq-default c-basic-offset 2)
(setq-default tab-width 2)
(setq-default indent-tabs-mode nil)
(custom-set-variables
'(indent-tabs-mode t)
'(standard-indent 2)
'(tab-stop-list (quote (4 8 12 16 20 24 286 32 36 40 44 48 104 112 120))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment