[Top][All Lists]

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

Re: Starting in c-set-style linux

From: Alan Mackenzie
Subject: Re: Starting in c-set-style linux
Date: Sat, 24 Apr 2004 07:51:32 +0000
User-agent: tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (Linux/2.0.35 (i686))

Kevin Rodgers <> wrote on Fri, 23 Apr 2004 10:08:35
> Alan Mackenzie wrote:
>  > Set the variable `c-default-style' in your .emacs file.  This is
>  > fully documented in the CC Mode manual, page "Choosing a Style".
>  > Something like the following in your .emacs should work:

>  > (eval-after-load "cc-mode"  '(setq c-default-style "linux"))

>  > [The eval-after-load bit is to make sure that you don't try and set the
>  > variable's value before the code has been loaded.]

> eval-after-load shouldn't be necessary, if the variable is defined in
> the usual defvar/defcustom way.

Whoops!  Thanks.

Yes, an eval-after-load is needed for functions (unless they're
autoloaded), but not for variables.

> Kevin Rodgers

Alan Mackenzie (Munich, Germany)
Email: aacm@muuc.dee; to decode, wherever there is a repeated letter
(like "aa"), remove half of them (leaving, say, "a").

reply via email to

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