Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs and C++ { } indenting



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: not available
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>



BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org