[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Helpful, thans.
From: |
jronald |
Subject: |
Helpful, thans. |
Date: |
Fri, 15 Sep 2006 02:31:54 +0800 |
<robert.thorpe@antenova.com>
??????:1158247308.610920.315590@e3g2000cwe.googlegroups.com...
> jronald wrote:
>> By consulting c-default-style in emacs's doc,
>> it says:
>>
>> c-default-style's value is
>> ((java-mode . "java")
>> (other . "gnu"))
>>
>> but I'm editing a .cpp file.
>
> c-default-style is a CC mode variable. CC mode deals with all
> langauges that are similar to C, such as Java, C++, C, and lots of
> other obscure langs. When you see "c-mode" in a buffer it means that
> you're using a C mode that is internally part of CC-mode.
>
> As a result this variable can have values for every one of these
> programming languages. For example, you can do:-
>
> (setq c-default-style "k&r") ;; Use kernigham & ritchie style for
> everything
> or specifying different styles for each mode that CC-mode controls..
> (setq c-default-style '((java-mode . "java") (c-mode . "gnu") (other .
> "whitesmith")))
>
> I think the name is rather confusing, it probably should be changed.
>