unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Indentation for "{" and "}"
@ 2007-07-29 17:23 Rafal Kurcz
  2007-07-29 18:08 ` Alan Mackenzie
  0 siblings, 1 reply; 2+ messages in thread
From: Rafal Kurcz @ 2007-07-29 17:23 UTC (permalink / raw)
  To: help-gnu-emacs

Hello

I want my C++ code to look as follows:

void function()
{
  printf ( "hello" );
}

and not look as follows:

void function()
  {
    pirntf ( "hello" );
  }

I added the following setting to my ~/.emacs file:
(global-set-key "\C-m" 'newline-and-indent)

It works fine for all lines but "{".
How to tell emacs not to indent the lines with "{" and "}"

Thanks for help

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

end of thread, other threads:[~2007-07-29 18:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-29 17:23 Indentation for "{" and "}" Rafal Kurcz
2007-07-29 18:08 ` Alan Mackenzie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).