From: Emanuel Berg <embe8573@student.uu.se>
To: help-gnu-emacs@gnu.org
Subject: Re: Activating a mode in a hook
Date: Fri, 18 Jul 2014 22:16:32 +0200 [thread overview]
Message-ID: <87ha2efmn3.fsf@debian.uxu> (raw)
In-Reply-To: mailman.5604.1405674266.1147.help-gnu-emacs@gnu.org
Florian Lindner <mailinglists@xgm.de> writes:
> First question: When entering c++ mode it activates
> my-cc-style. It works finde regarding the namespaces,
> but c-basic-offset is still 8, not 2.
I don't understand your problem/purpose, but:
(setq c++-mode-hook (lambda () (setq c-basic-offset 2)))
> 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 `sematic-mode' (what is it?) - but are you
able to activate it for specific modes manually
somehow? If so, do it again for the specific modes in a
hook, as above...
--
underground experts united
next parent reply other threads:[~2014-07-18 20:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.5604.1405674266.1147.help-gnu-emacs@gnu.org>
2014-07-18 20:16 ` Emanuel Berg [this message]
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
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=87ha2efmn3.fsf@debian.uxu \
--to=embe8573@student.uu.se \
--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.