help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: c-mode indentation of parenthesized expressions


From: Thomas Christensen
Subject: Re: c-mode indentation of parenthesized expressions
Date: Thu, 05 Feb 2009 20:19:05 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.90 (gnu/linux)

Teemu Likonen <tlikonen@iki.fi> writes:

> You can change it temporarily by putting the cursor on the second line
> and pressing "C-c C-o". Minibuffer dialog offers arglist-cont-nonempty:
> just press Enter and then answer ++ (that is, two plus signs) to the
> latter question.

Good tip, thanks.

>
>     (add-hook 'c-mode-common-hook
>               '(lambda ()
>                  (c-add-style
>                   "my-style"
>                   '("linux" (c-offsets-alist
>                              (arglist-cont-nonempty '++))))))

Yup, I found out that `arglist-cont-nonempty' was the key.

Thanks

                Thomas





reply via email to

[Prev in Thread] Current Thread [Next in Thread]