From: Tassilo Horn <tsdh@gnu.org>
To: Florian Lindner <mailinglists@xgm.de>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Activating a mode in a hook
Date: Fri, 18 Jul 2014 15:23:37 +0200 [thread overview]
Message-ID: <87mwc6er6u.fsf@gnu.org> (raw)
In-Reply-To: <lqantp$uq$1@ger.gmane.org> (Florian Lindner's message of "Fri, 18 Jul 2014 11:03:49 +0200")
Florian Lindner <mailinglists@xgm.de> writes:
Hi Florian,
I have no clue about the first question, but...
> 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 think, you cannot. At least it's defined as a global minor mode in
semantic.el:
--8<---------------cut here---------------start------------->8---
(define-minor-mode semantic-mode
"..."
:global t
^^^^^^^^^
--8<---------------cut here---------------end--------------->8---
Bye,
Tassilo
next prev parent reply other threads:[~2014-07-18 13:23 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 [this message]
2014-07-21 11:10 ` Suvayu Ali
2014-07-19 0:56 ` Michael Heerdegen
[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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87mwc6er6u.fsf@gnu.org \
--to=tsdh@gnu.org \
--cc=help-gnu-emacs@gnu.org \
--cc=mailinglists@xgm.de \
/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.