all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juha Nieminen <nospam@thanks.invalid>
To: help-gnu-emacs@gnu.org
Subject: Complex indentation configuration issue
Date: Tue, 18 Dec 2018 09:48:42 -0000 (UTC)	[thread overview]
Message-ID: <pvafpo$1k4c$1@adenine.netfront.net> (raw)

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?


             reply	other threads:[~2018-12-18  9:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-18  9:48 Juha Nieminen [this message]
2018-12-20 16:31 ` Complex indentation configuration issue Alan Mackenzie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='pvafpo$1k4c$1@adenine.netfront.net' \
    --to=nospam@thanks.invalid \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.