all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

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.