From: pmlists@free.fr (Peter Münster)
To: help-gnu-emacs@gnu.org
Subject: Re: how to set c-set-style at startup?
Date: Wed, 20 Jul 2011 09:15:55 +0200 [thread overview]
Message-ID: <87d3h5h178.fsf@micropit.couberia.bzh> (raw)
In-Reply-To: CAMJ-YiSA3sCVK1WRuo4Ryn1Bh_Xr21AZjD7ZAG8BUd-+MpYvjQ@mail.gmail.com
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
next prev parent reply other threads:[~2011-07-20 7:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-18 22:58 how to set c-set-style at startup? Jai Dayal
2011-07-18 23:17 ` Deniz Dogan
2011-07-19 5:03 ` Peter Münster
2011-07-20 2:34 ` Jai Dayal
2011-07-20 5:30 ` Andreas Röhler
2011-07-20 7:15 ` Peter Münster [this message]
2011-07-20 16:12 ` Jai Dayal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87d3h5h178.fsf@micropit.couberia.bzh \
--to=pmlists@free.fr \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.