[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to set c-set-style at startup?
From: |
Peter Münster |
Subject: |
Re: how to set c-set-style at startup? |
Date: |
Wed, 20 Jul 2011 09:15:55 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
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