From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: rdelcueto@gmail.com Newsgroups: gmane.emacs.help Subject: Customizing C Indentation Date: Mon, 13 Apr 2015 15:52:46 -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 1428967919 3566 80.91.229.3 (13 Apr 2015 23:31:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 13 Apr 2015 23:31:59 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Apr 14 01:31:58 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 1Yhnpe-0001Ze-0L for geh-help-gnu-emacs@m.gmane.org; Tue, 14 Apr 2015 01:31:58 +0200 Original-Received: from localhost ([::1]:53732 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yhnpd-0005kW-7A for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Apr 2015 19:31:57 -0400 X-Received: by 10.66.102.66 with SMTP id fm2mr23650767pab.4.1428965567126; Mon, 13 Apr 2015 15:52:47 -0700 (PDT) X-Received: by 10.140.21.145 with SMTP id 17mr199025qgl.1.1428965566816; Mon, 13 Apr 2015 15:52:46 -0700 (PDT) Original-Path: usenet.stanford.edu!m20no3281969iga.0!news-out.google.com!a41ni95qgf.1!nntp.google.com!j5no1315873qga.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=199.19.251.46; posting-account=A29A8woAAACKlzKP-HQhfnDB3hen9hCu Original-NNTP-Posting-Host: 199.19.251.46 User-Agent: G2/1.0 Injection-Date: Mon, 13 Apr 2015 22:52:46 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:211417 X-Mailman-Approved-At: Mon, 13 Apr 2015 19:31:45 -0400 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:103701 Archived-At: Hey all, I hope you could help me figure out how to customize Emacs to indent code in the following way. I'm working on an EDK related project. And the EDK code standards state the following: "Subsequent lines of multi-line function calls should line up one or two tab- stops from the beginning of the function name." Example: Status = gRT->GetVariable( NORMAL_SETUP_NAME, &gEfiNormalSetupGuid, NULL, &VarSize, &SystemConfiguration ); So given a function call, the arglist-intro offset, should make reference to the position of the first character of the function being called, and from there, go up an indentation level. I've read the Emacs documentation, and I only understood how to indent in relation to the previous line's indentation level. But I haven't been able to understand how to move within the previous line's content. -Rodrigo