Skip to content

Instantly share code, notes, and snippets.

@eamartin
Created March 12, 2013 06:47
Show Gist options
  • Save eamartin/5140831 to your computer and use it in GitHub Desktop.
Save eamartin/5140831 to your computer and use it in GitHub Desktop.
;; If not explicitly defined otherwise, use spaces instead of tabs
(setq-default indent-tabs-mode nil)
(setq-default tab-width 4)
(setq indent-line-function 'insert-tab)
(setq inhibit-startup-message t)
(menu-bar-mode 0)
(add-hook 'before-save-hook 'delete-trailing-whitespace)
(add-hook 'python-mode-hook
(lambda ()
(setq tab-width 4)
))
(add-hook 'c++-mode-hook
(lambda ()
(setq tab-width 4)
))
(setq c-default-style "k&r"
c-basic-offset 4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment