summaryrefslogtreecommitdiffstats
path: root/emacs-style
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-08 19:09:22 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-08 19:09:22 +0000
commit2faa747e2303ee774a4b4aace961188e950e185a (patch)
tree604e79c7481956ce48f458e3546eaf1090b3ffff /emacs-style
parentInitial commit. (diff)
downloadapache2-2faa747e2303ee774a4b4aace961188e950e185a.tar.xz
apache2-2faa747e2303ee774a4b4aace961188e950e185a.zip
Adding upstream version 2.4.58.upstream/2.4.58
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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)