summaryrefslogtreecommitdiffstats
path: root/emacs-style
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-07 02:04:06 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-07 02:04:06 +0000
commit5dff2d61cc1c27747ee398e04d8e02843aabb1f8 (patch)
treea67c336b406c8227bac912beb74a1ad3cdc55100 /emacs-style
parentInitial commit. (diff)
downloadapache2-5dff2d61cc1c27747ee398e04d8e02843aabb1f8.tar.xz
apache2-5dff2d61cc1c27747ee398e04d8e02843aabb1f8.zip
Adding upstream version 2.4.38.upstream/2.4.38
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)