On Wed, Jul 20, 2011 at 1:15 AM, Peter Münster
<pmlists@free.fr> wrote:
On Wed, Jul 20 2011, Jai Dayal wrote:
> I tried this, but it doesn't seem to be working.
Example? Emacs-version?
This works for me:
emacs -Q
M-: (add-hook 'c-mode-hook '(lambda () (c-set-style "linux")))
open "foo.c"
C-h v c-indentation-style
-> result = "linux"
> For example, I change the
> style to the style I have in the code below, and the indentation will be
> different.
To be expected, isn't it?
> I can also put in garbage instead of "linux" and no errors occur.
I get "Undefined style: garbage" in the *Messages* buffer.
--
Peter