summaryrefslogtreecommitdiff
path: root/emacs-mode
diff options
context:
space:
mode:
authorben <ben@13f79535-47bb-0310-9956-ffa450edef68>2003-11-06 00:26:06 +0000
committerben <ben@13f79535-47bb-0310-9956-ffa450edef68>2003-11-06 00:26:06 +0000
commit673d0521b4884546519c6b50241400fa102728da (patch)
tree18a6a1e32edc7bab004180a0651e7f5289185ead /emacs-mode
parent390c3d58527895711dc56f39cf77b8966d099d3a (diff)
downloadlibapr-673d0521b4884546519c6b50241400fa102728da.tar.gz
Help idiots like me who use emacs.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64734 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'emacs-mode')
-rw-r--r--emacs-mode15
1 files changed, 15 insertions, 0 deletions
diff --git a/emacs-mode b/emacs-mode
new file mode 100644
index 000000000..2c7abe983
--- /dev/null
+++ b/emacs-mode
@@ -0,0 +1,15 @@
+;; M-x load-file <this file>
+;; or emacs -l <this file>
+;; to use this style: C-c . apache
+(c-add-style "apache"
+ '((inclass . ++)
+ (defun-block-intro . ++)
+ (statement-block-intro . ++)
+ (substatement . ++)
+ (brace-list-intro . ++)
+ (statement-case-intro . ++)
+ (inextern-lang . 0)
+ ))
+(setq-default indent-tabs-mode nil)
+;; if you forgot to do this at startup, then M-x eval-expression
+;; (setq indent-tabs-mode nil) on each buffer