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"