all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: John Mastro <john.b.mastro@gmail.com>
To: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Re: Block as method parameter indentation in objc-mode
Date: Thu, 28 May 2015 11:26:21 -0700	[thread overview]
Message-ID: <CAOj2CQSnVWOoS_ZPp0ybzyS3GX2DNtzphwdzOZRjbmjHKS2sQA@mail.gmail.com> (raw)
In-Reply-To: <mk6h0f$2vkl$1@adenine.netfront.net>

Juha Nieminen <nospam@thanks.invalid> wrote:
>>>> /*
>>>>     (push '(objc-method-call-cont . (c-lineup-ObjC-method-call-colons
>>>>                                      ;; c-lineup-ObjC-method-call
>>>>                                      2))
>>>>             c-offsets-alist)
>>>> */
> I have no idea what to do with that information. I still haven't the
> slightest clue where I should put that command.

Try this:

(eval-after-load 'cc-mode
  '(push '(objc-method-call-cont . (c-lineup-ObjC-method-call-colons
                                    ;; c-lineup-ObjC-method-call
                                    2))
         c-offsets-alist))

That wraps Pascal's suggestion in `eval-after-load' such that it's not
evaluated until after `cc-mode' is loaded.

-- 
john



  reply	other threads:[~2015-05-28 18:26 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-25 18:02 Block as method parameter indentation in objc-mode juha.nieminen
2015-05-25 18:30 ` Pascal J. Bourguignon
2015-05-26  8:25   ` juha.nieminen
2015-05-26 12:43     ` Pascal J. Bourguignon
2015-05-28  7:44       ` Juha Nieminen
2015-05-28 18:26         ` John Mastro [this message]
     [not found]         ` <mailman.3855.1432837606.904.help-gnu-emacs@gnu.org>
2015-05-29  8:18           ` Juha Nieminen

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=CAOj2CQSnVWOoS_ZPp0ybzyS3GX2DNtzphwdzOZRjbmjHKS2sQA@mail.gmail.com \
    --to=john.b.mastro@gmail.com \
    --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.