all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* C indentation customization
@ 2015-07-24 14:24 Rusi
  2015-07-24 14:53 ` Rusi
  0 siblings, 1 reply; 5+ messages in thread
From: Rusi @ 2015-07-24 14:24 UTC (permalink / raw)
  To: help-gnu-emacs

http://emacswiki.org/emacs/IndentingC
seems to say that doing

(setq c-default-style "linux"
          c-basic-offset 4)

will indent like this:

if(foo)
{
    bar++;
}

ie '{' is not indented, contents is 4 space indented.

Likewise setting to bsd
as described https://en.wikipedia.org/wiki/Indent_style#Allman_style
seems to say that the '{' wont be indented

None of these work; ie the '{' is always indented.


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

end of thread, other threads:[~2015-07-25 16:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-24 14:24 C indentation customization Rusi
2015-07-24 14:53 ` Rusi
2015-07-25  5:25   ` Rusi
2015-07-25  7:38     ` Eli Zaretskii
     [not found]     ` <mailman.7372.1437809994.904.help-gnu-emacs@gnu.org>
2015-07-25 16:55       ` Rusi

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.