From: Michael Heerdegen <michael_heerdegen@web.de>
To: help-gnu-emacs@gnu.org
Subject: Re: Activating a mode in a hook
Date: Sat, 19 Jul 2014 02:56:54 +0200 [thread overview]
Message-ID: <87bnsmjhd5.fsf@web.de> (raw)
In-Reply-To: lqantp$uq$1@ger.gmane.org
Florian Lindner <mailinglists@xgm.de> writes:
> c-basic-offset: Its value is 8, original value was set-from-style
> Local in buffer namespace.cpp; global value is set-from-style.
This seems to be the problem: you somehow set the (buffer local) binding
to 8 - before the style stuff is applied. But AFAIU the style binding
is only applied when it finds a value of 'set-from-style. You should
find out where the binding to 8 comes from (maybe a file local variable
binding?)
> Second question: semantic-mode will be activated when entering c++ mode but
> then it's globablly activated, how can I activate it only for specific
> modes?
I don't use it, but yes, it seems to exist only as a global mode.
next prev parent reply other threads:[~2014-07-19 0:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-18 9:03 Activating a mode in a hook Florian Lindner
2014-07-18 13:23 ` Tassilo Horn
2014-07-21 11:10 ` Suvayu Ali
2014-07-19 0:56 ` Michael Heerdegen [this message]
[not found] <mailman.5604.1405674266.1147.help-gnu-emacs@gnu.org>
2014-07-18 20:16 ` Emanuel Berg
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87bnsmjhd5.fsf@web.de \
--to=michael_heerdegen@web.de \
--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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).