all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Rodrigo González del Cueto" <rdelcueto@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Customizing C Indentation
Date: Mon, 13 Apr 2015 19:54:05 -0700 (PDT)	[thread overview]
Message-ID: <7eac77d6-767a-4f38-a9cd-2030349af9c7@googlegroups.com> (raw)
In-Reply-To: <c3e89b32-67cb-4fba-ac36-6f62458c4828@googlegroups.com>

On Monday, April 13, 2015 at 5:52:49 PM UTC-5, Rodrigo González del Cueto wrote:
> 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

Just realized that the code example format doesn't look the same in every computer.
I'll link to the Github source code line, for a better view.

https://github.com/tianocore/edk2/blob/5d6bf9e22973c2ad327ca7422f80144c848912dc/Vlv2TbltDevicePkg/PlatformInfoDxe/PlatformInfoDxe.c#L67


  parent reply	other threads:[~2015-04-14  2:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-13 22:52 Customizing C Indentation rdelcueto
2015-04-13 22:54 ` Rodrigo González del Cueto
2015-04-14  2:54 ` Rodrigo González del Cueto [this message]
2015-04-14 21:45 ` Rodrigo González del Cueto

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=7eac77d6-767a-4f38-a9cd-2030349af9c7@googlegroups.com \
    --to=rdelcueto@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.