unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Complex indentation configuration issue
@ 2018-12-18  9:48 Juha Nieminen
  2018-12-20 16:31 ` Alan Mackenzie
  0 siblings, 1 reply; 2+ messages in thread
From: Juha Nieminen @ 2018-12-18  9:48 UTC (permalink / raw)
  To: help-gnu-emacs

I want this type of code to be indented like this:

    functionCall
        (param1, param2,
         {
             value1,
             value2,
             value3
         });

My emacs, however, is currently indenting it like this:

    functionCall
        (param1, param2,
         {
             value1,
                 value2,
                 value3
                 });

I have used the C-c C-o trick to find out (and change) which indentation
parameter is being used for the offending lines, and it appears to be
statement-cont, which has a value of +.

If I change it to 0, then the "value2" and "value3" lines get properly
indented, but the problem is that the second line is also indented using
that same parameter (not a huge problem but...), as well as the closing
curly bracket (more of a problem). There are probably also other
situations that would probably be negatively affected by this change.

Any suggestions?


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

end of thread, other threads:[~2018-12-20 16:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-18  9:48 Complex indentation configuration issue Juha Nieminen
2018-12-20 16:31 ` 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).