This blog post tells you how to add an emacs style for programming apache httpd and its modules. This is one of those things that is difficult to google for, as you’ll end up finding emacs modes for editing httpd.conf, or various Java-based apache projects.
Nice and simple. Add this to your ~/.emacs file:
(c-add-style "apache" '((inclass . ++) (indent-tabs-mode . nil) (defun-block-intro . ++) (statement-block-intro . ++) (substatement . ++) (brace-list-intro . ++) (statement-case-intro . ++) (inextern-lang . 0) ))
Then when you want to use it, in emacs do:
C-c . apache
Or if you like typing:
M-x c-set-style apache
I don’t claim to be an emacs expert, but I can confirm this works.