all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Customizing C Indentation
@ 2015-04-13 22:52 rdelcueto
  2015-04-13 22:54 ` Rodrigo González del Cueto
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: rdelcueto @ 2015-04-13 22:52 UTC (permalink / raw)
  To: help-gnu-emacs

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-04-14 21:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2015-04-14 21:45 ` Rodrigo González del Cueto

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.