summaryrefslogtreecommitdiffstats
path: root/.emacs.d
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2012-10-26 00:54:23 +0200
committerGravatar Tom Willemsen2012-10-26 00:54:23 +0200
commit2e70340b951f485d45b95684e7910d1a78917d03 (patch)
treebc38d5518c3c4cf83477655a3103112e101daccd /.emacs.d
parent2d3476b96a39b572a8733e10b00cdad8083edb04 (diff)
downloaddotfiles-2e70340b951f485d45b95684e7910d1a78917d03.tar.gz
dotfiles-2e70340b951f485d45b95684e7910d1a78917d03.zip
.emacs.d/init.el
Diffstat (limited to '.emacs.d')
-rw-r--r--.emacs.d/init.el14
1 files changed, 14 insertions, 0 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el
index 4dc6873..793ac7d 100644
--- a/.emacs.d/init.el
+++ b/.emacs.d/init.el
@@ -145,6 +145,18 @@
`((".*" . ,temporary-file-directory)))
(setq browse-url-browser-function 'browse-url-generic)
(setq browse-url-generic-program (getenv "BROWSER"))
+(setq c-offsets-alist '((statement-block-intro . +)
+ (knr-argdecl-intro . 5)
+ (substatement-open . +)
+ (substatement-label . 0)
+ (label . 0)
+ (statement-case-open . +)
+ (statement-cont . +)
+ (arglist-intro . +)
+ (arglist-close . 0)
+ (inline-open . 0)
+ (brace-list-open . +)
+ (topmost-intro-cont first c-lineup-topmost-intro-cont c-lineup-gnu-DEFUN-intro-cont)))
(setq comment-auto-fill-only-comments t)
(setq custom-file "~/.emacs.d/custom.el")
(setq custom-theme-directory "~/.emacs.d/themes")
@@ -185,6 +197,8 @@
"whitespace before ':'"
"whitespace after '('"
"whitespace before ')'"
+ "whitespace after '['"
+ "whitespace before ']'"
"the backslash is redundant between brackets"
"continuation line over-indented for visual indent"
"continuation line under-indented for visual indent"