emacs and C++ { } indenting

Ed Hill ed at eh3.com
Wed Feb 25 12:09:30 EST 2004


On Wed, 2004-02-25 at 11:36, David Kramer wrote:
> Emacs C++ mode seems to insist on K&R style indenting of brackets like
> 
> emacs goes nuts indenting everyting too much when I do that too.  So I 
> have to write my program using K&R, then go back and fix the brackets 
> afterwards.
> 
> What is the magic Lisp incantation to fix this?  I found something SingTFW 
> but it didn't work.


Hi David,

I recently re-jigged some of my emacs defaults and was surprised how
much easier emacs customization has become.  With recent emacs versions
you can do the customization with easy point-and-click menus that will
then (if you click on the "save" buttons) add it to your ~/.emacs file.

Just follow the menus:

 Options 
  -> Customize Emacs
   -> Browse Customization Groups
    -> Programming
     -> Languages
      -> C
       -> C++ mode-hook

hth,
Ed

-- 
Edward H. Hill III, PhD
office:  MIT Dept. of EAPS;  Room 54-1424;  77 Massachusetts Ave.
            Cambridge, MA 02139-4307
email:   eh3 at mit.edu,  ed at eh3.com
URL:     http://web.mit.edu/eh3/
phone:   617-253-0098
fax:     617-253-4464
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.blu.org/pipermail/discuss/attachments/20040225/3f936ee4/attachment.sig>


More information about the Discuss mailing list