You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modules-dev@httpd.apache.org by Tim Bray <Ti...@Sun.COM> on 2008/07/04 06:08:41 UTC
Emacs lore for Apache?
I ran into a showstopper NetBeans problem and until it's fixed, am
switching to Emacs for my module dev work. Any apache/emacs lore
would be appreciated. Will one of the string arguments to c-style Do
The Right Thing? Any other goodies for my .emacs?
-T
Re: Emacs lore for Apache?
Posted by Sander Temme <sc...@apache.org>.
On Jul 3, 2008, at 9:08 PM, Tim Bray wrote:
> I ran into a showstopper NetBeans problem and until it's fixed, am
> switching to Emacs for my module dev work. Any apache/emacs lore
> would be appreciated. Will one of the string arguments to c-style
> Do The Right Thing? Any other goodies for my .emacs?
See he emacs-style file in the root of the source tree:
[sctemme@legadema] ~ $ cat asf/httpd/trunk/emacs-style
(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)
I have this in my ~/.emacs.
S.
--
Sander Temme
sctemme@apache.org
PGP FP: 51B4 8727 466A 0BC3 69F4 B7B8 B2BE BC40 1529 24AF