summaryrefslogtreecommitdiffstats
path: root/emacs-style
diff options
context:
space:
mode:
authorBen Laurie <ben@apache.org>1999-08-01 17:20:53 +0200
committerBen Laurie <ben@apache.org>1999-08-01 17:20:53 +0200
commit433fd8f906cc5e555b9222539eb3d6bc0aa891b1 (patch)
tree51660969804c3d5ea1b63a034ce9c44c1263bdeb /emacs-style
parentAnother hook. (diff)
downloadapache2-433fd8f906cc5e555b9222539eb3d6bc0aa891b1.tar.xz
apache2-433fd8f906cc5e555b9222539eb3d6bc0aa891b1.zip
Set up emacs for the Apache Style Guide.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83549 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'emacs-style')
-rw-r--r--emacs-style9
1 files changed, 9 insertions, 0 deletions
diff --git a/emacs-style b/emacs-style
new file mode 100644
index 0000000000..a0f16e2209
--- /dev/null
+++ b/emacs-style
@@ -0,0 +1,9 @@
+(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' ++)
+ )))
+(setq c++-mode-hook c-mode-hook)