unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / 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

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).