all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: customizing indentation rules.
       [not found] <P74Un.550986$gS2.218273@en-nntp-08.am2.easynews.com>
@ 2010-06-22 17:23 ` Andreas Politz
  2010-06-22 18:16 ` jpkotta
  1 sibling, 0 replies; 2+ messages in thread
From: Andreas Politz @ 2010-06-22 17:23 UTC (permalink / raw)
  To: help-gnu-emacs

glen stark <mail@nospam.glenstark.net> writes:

> Hi everyone.  
>
> I have a question about how to customize the emacs indentation rules, 
> specifically for the C++ mode.  
>
> Currently emacs indents code after an open parentheses thusly:
>
> void example_function(
> 		      int i,
> 		      int j,
> 	              ... )
> I'd like it to rather do this:
> void example_function(
>    int i,
>    int j,
>    ... )
>
> Can someone point me in the right direction for how to accomplish this?

Yes, read the manual (info "(ccmode) c-offsets-alist") and/or try `C-c
C-o'. You maybe have to write a function for the closing paren line up.

-ap


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

* Re: customizing indentation rules.
       [not found] <P74Un.550986$gS2.218273@en-nntp-08.am2.easynews.com>
  2010-06-22 17:23 ` customizing indentation rules Andreas Politz
@ 2010-06-22 18:16 ` jpkotta
  1 sibling, 0 replies; 2+ messages in thread
From: jpkotta @ 2010-06-22 18:16 UTC (permalink / raw)
  To: help-gnu-emacs

On Jun 22, 9:53 am, glen stark <m...@nospam.glenstark.net> wrote:
> Hi everyone.  
>
> I have a question about how to customize the emacs indentation rules,
> specifically for the C++ mode.  
>
> Currently emacs indents code after an open parentheses thusly:
>
> void example_function(
>                       int i,
>                       int j,
>                       ... )
> I'd like it to rather do this:
> void example_function(
>    int i,
>    int j,
>    ... )
>
> Can someone point me in the right direction for how to accomplish this?

Try customizing c-offsets-alist.  I think setting arglist-intro (and
probably arglist-cont and arglist-cont-nonempty) to '+ is what you
want.


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

end of thread, other threads:[~2010-06-22 18:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <P74Un.550986$gS2.218273@en-nntp-08.am2.easynews.com>
2010-06-22 17:23 ` customizing indentation rules Andreas Politz
2010-06-22 18:16 ` jpkotta

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.