summaryrefslogtreecommitdiff
path: root/emacs-style
diff options
context:
space:
mode:
authorBen Laurie <ben@apache.org>1999-08-01 15:20:53 +0000
committerBen Laurie <ben@apache.org>1999-08-01 15:20:53 +0000
commit433fd8f906cc5e555b9222539eb3d6bc0aa891b1 (patch)
tree51660969804c3d5ea1b63a034ce9c44c1263bdeb /emacs-style
parentd61fe22a65f7ad3029ec3b2f1ff7df89271c0742 (diff)
downloadhttpd-433fd8f906cc5e555b9222539eb3d6bc0aa891b1.tar.gz
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)