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

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

Re: C-mode-style whitesmith with emacs 21/22


From: Lars Meier
Subject: Re: C-mode-style whitesmith with emacs 21/22
Date: Sun, 17 Feb 2008 18:50:06 +0100
User-agent: Thunderbird 1.5.0.14 (X11/20071210)

>
> I do something like this,
>
> (defun my-c-mode-common-hook ()
>   (c-set-style "user")
>   (c-set-offset 'case-label '+)
>   (c-set-offset 'substatement-open 0)
>   (setq fill-column 75)
>   (imenu-add-menubar-index)
>   (add-hook 'c-mode-hook 'turn-on-cwarn-mode)
>   )
> (add-hook 'c-mode-common-hook 'my-c-mode-common-hook)
>
>
> You would need to change "user" to "whitesmith", and tweak a little,
> but it should not be all that hard to do.
>


Thank you for your help but I didn't get it working up to now. Your
example shows fixed offset and that worked. But I need variable offset
according to the preceding line. I found something in that way in the
emacs help but I didn't get it working.

Lars


reply via email to

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