David Seikel <[EMAIL PROTECTED]> writes:

> I have no idea what my editor will do to my attempts to follow the E
> tabbing preferences.  The bulk of the code I added was cut and
> pasted from something else I wrote for a project with different
> coding standards.  I will finish massaging it to match E coding
> standards tomorrow.

I've been working on getting Emacs (or rather the CC-mode used when
editing C code) to indent in a matching style.  Adding the following
blob at the bottom of a file gives 99% correct results:

// Local Variables:
// indent-tabs-mode: t
// tab-width: 8
// c-file-offsets: ((knr-argdecl-intro . 0) (case-label . 1)
//                  (substatement-open . 2) (substatement . 2)
//                  (statement-cont . 2))
// c-comment-only-line-offset: (0 . -1000)
// c-basic-offset: 3
// End:

The only problem I've found is with scope blocks opened in the middle
of a function -- I've even filed a bug with the CC-mode maintainers
about this but they didn't respond.

-- 
Martin Geisler                                     GnuPG Key: 0x7E45DD38

PHP Exif Library      |  PHP Weather             |  PHP Shell
http://pel.sf.net/    |  http://phpweather.net/  |  http://mgeisler.net/
Read/write Exif data  |  Show current weather    |  A shell in a browser

Attachment: pgpPp2LwDxg6c.pgp
Description: PGP signature

Reply via email to