[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: c-set-style question
From: |
robert . thorpe |
Subject: |
Re: c-set-style question |
Date: |
13 Sep 2006 10:04:03 -0700 |
User-agent: |
G2/1.0 |
jronald wrote:
> Which variable does this function change? Is there?
>
> There is another a variable called c-default-style, which isn't changed by
> the function.What is the effect of it.
It's in the docs type C-h v c-default-style
c-default-style is an alist determining the style to be used by all
C-like languages. It is used before mode-specific hooks are run. Then
once in CC mode c-set-style can be used to change the mode on the fly.
So, c-default-style is most useful for writing you .emacs files,
c-set-style is most useful to change the style during editing. You
could use c-set-style to change the style in a hook if you liked though.