summaryrefslogtreecommitdiffstats
path: root/emacs-style
diff options
context:
space:
mode:
Diffstat (limited to 'emacs-style')
-rw-r--r--emacs-style12
1 files changed, 12 insertions, 0 deletions
diff --git a/emacs-style b/emacs-style
new file mode 100644
index 0000000..7ca4f40
--- /dev/null
+++ b/emacs-style
@@ -0,0 +1,12 @@
+(add-hook 'c-mode-hook
+ (function (lambda ()
+ (c-set-offset 'inclass' ++)
+ (c-set-offset 'defun-block-intro' ++)
+ (c-set-offset 'statement-block-intro' ++)
+ (c-set-offset 'substatement' ++)
+ (c-set-offset 'brace-list-intro' ++)
+ (c-set-offset 'statement-case-intro' ++)
+ (c-set-offset 'inextern-lang' 0)
+ )))
+(setq c++-mode-hook c-mode-hook)
+(setq-default indent-tabs-mode nil)