httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Stoddard" <b...@wstoddard.com>
Subject Re: Emacs stanza?
Date Thu, 03 Jan 2002 16:01:23 GMT
-1 (and I'm an emacs user :-)

Metadata should be kept seperate from data. I.e., you should put something like this in
your _emacs file :-)

;;;---------------------------------------------------------------------
;;; C language mode personalization parameters for me
(setq c-mode-hook '(lambda ()
       (setq indent-tabs-mode nil)
       (setq c-file-style "bsd");
   (c-set-offset 'statement-case-intro' ++)
       ))
;;;---------------------------------------------------------------------
;;; C++ language mode personalization parameters for me
(setq c++-mode-hook '(lambda ()
       (setq indent-tabs-mode nil)
       (setq c-file-style "bsd");
       ))

Bill

----- Original Message -----
From: "Rodent of Unusual Size" <Ken.Coar@Golux.Com>
To: "Apache Developers" <dev@httpd.apache.org>
Sent: Thursday, January 03, 2002 10:51 AM
Subject: Emacs stanza?


> [sent last night, looks like it didn't get through..]
>
> I don't know how many people use Emacs to edit the Apache stuff,
> but would anyone object to a stanza at the bottom of the source
> files to help put Emacs in the right stylistic mood?  To wit,
> something like:
>
> /*
>  * Local Variables:
>  * mode: C
>  * c-file-style: "bsd"
>  * indent-tabs-mode: nil
>  * End:
>  */
>
> This would set the tab stop to 4, and keep TAB characters from
> being embedded, using spaces always.  And it wouldn't do any
> harm to non-Emacs users..
> --
> #ken P-)}
>
> Ken Coar, Sanagendamgagwedweinini  http://Golux.Com/coar/
> Author, developer, opinionist      http://Apache-Server.Com/
>
> "All right everyone!  Step away from the glowing hamburger!"
>


Mime
View raw message