Hi,
Thanks for your help! I tried that, and for indentation style, it displayed "gnu". I didn't see any errors in the Messages list.
From here: http://www.emacswiki.org/emacs/IndentingC#toc1
I found this:
(setq c-default-style "linux"
c-basic-offset 4)
On Wed, Jul 20 2011, Jai Dayal wrote:Example? Emacs-version?
> I tried this, but it doesn't seem to be working.
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"
To be expected, isn't it?
> For example, I change the
> style to the style I have in the code below, and the indentation will be
> different.
I get "Undefined style: garbage" in the *Messages* buffer.
> I can also put in garbage instead of "linux" and no errors occur.
--
Peter