[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: Thu, 22 Apr 2004 13:31:46 +0000
User-agent: tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (Linux/2.0.35 (i686))

News @adelphia <> wrote on Wed, 21 Apr 2004 19:39:31
>  I'm new to emacs, and I was wondering what I need to do in order to
>  start emacs in linux mode with out have to "M-x c-set-style linux"
>  every time I start emacs. I've looked all over the web and can't find
>  anything on the subject. If anyone can point me in the right direction
>  I'd be very greatful.

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.]

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]