all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Unusual C indentation conventions
@ 2005-03-28 23:21 no spam
  2005-03-29 12:57 ` Greg Rowe
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: no spam @ 2005-03-28 23:21 UTC (permalink / raw)


hi, I've spent a fair amount of time trying to get emacs to do something 
reasonably close to what's required in my installation, and I find that 
it usually doesn't and I can't figure out why.  I'll manually space the 
bracket { to be where I want it, and then as soon as I start typing, 
it'll re-indent it, and even the .emacs variables that I would have 
thought would just turn off ALL syntax-directed indentation don't seem 
to do it.

All complaining aside, though:  what can I put in my .emacs to cause it 
to do this:

===================

The code follows an indentation convention that is a bit
unusual for C.  Opening and closing braces are on
a line by themselves and are indented at the same
level as the block they enclose:
     if (someTest)
         {
         doSomething();
         doSomethingElse();
         }
Tab stops are set to 8.  Each block of code is
indented by 4 from the previous block.  (In the
vi editor set ts=8  set sw=4)

=================

??


Thanks in advance.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-03-29 18:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-28 23:21 Unusual C indentation conventions no spam
2005-03-29 12:57 ` Greg Rowe
2005-03-29 15:48 ` Peter Lee
2005-03-29 18:23 ` Alan Mackenzie

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.