From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: juha.nieminen@gmail.com Newsgroups: gmane.emacs.help Subject: Block as method parameter indentation in objc-mode Date: Mon, 25 May 2015 11:02:14 -0700 (PDT) Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1432577120 20663 80.91.229.3 (25 May 2015 18:05:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 May 2015 18:05:20 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon May 25 20:05:20 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YwwkZ-0003mi-0s for geh-help-gnu-emacs@m.gmane.org; Mon, 25 May 2015 20:05:19 +0200 Original-Received: from localhost ([::1]:44613 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YwwkY-00028v-6P for geh-help-gnu-emacs@m.gmane.org; Mon, 25 May 2015 14:05:18 -0400 X-Received: by 10.70.131.66 with SMTP id ok2mr29213661pdb.9.1432576935109; Mon, 25 May 2015 11:02:15 -0700 (PDT) X-Received: by 10.140.95.135 with SMTP id i7mr284665qge.27.1432576934850; Mon, 25 May 2015 11:02:14 -0700 (PDT) Original-Path: usenet.stanford.edu!news.glorb.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!h15no8359078igd.0!news-out.google.com!k20ni44920qgd.0!nntp.google.com!z60no3770322qgd.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=80.222.147.171; posting-account=QAuWLgoAAADS0hT14VZxHpRnYfaWnTmL Original-NNTP-Posting-Host: 80.222.147.171 User-Agent: G2/1.0 Injection-Date: Mon, 25 May 2015 18:02:14 +0000 Original-Lines: 24 Original-Xref: usenet.stanford.edu gnu.emacs.help:212277 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:104561 Archived-At: Is there an easy way in objc-mode to make a starting { symbol that appears in a method parameter to be indented only one space more than the starting [ of the method call? In other words, I want it to indent like this: [someObj someMethodTakingABlock: ^() { // some code here }]; Likewise, if possible, the ^(...) part also ought to be indented like that if it's on its own like. So like: [someObj someMethodTakingABlock: ^(int someValue, NSString* someString) { // some code here }]; Currently objc-mode indents such blocks waaaay to the right, which is rather impractical. If there happened to be more parameters after that, they ought to be indented as normal. In other words, overall, like this: [someObj someParameter: aValue aBlock: ^() { // some code } aThirdParameter: anotherValue];