help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Activating a mode in a hook


From: Tassilo Horn
Subject: Re: Activating a mode in a hook
Date: Fri, 18 Jul 2014 15:23:37 +0200
User-agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4.50 (gnu/linux)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]