From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: Activating a mode in a hook Date: Fri, 18 Jul 2014 15:23:37 +0200 Message-ID: <87mwc6er6u.fsf@gnu.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1405689965 5869 80.91.229.3 (18 Jul 2014 13:26:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Jul 2014 13:26:05 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Florian Lindner Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 18 15:25:58 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1X88Af-0005Gb-Bl for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Jul 2014 15:25:57 +0200 Original-Received: from localhost ([::1]:49832 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X88Ae-00021F-Ro for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Jul 2014 09:25:56 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55024) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X88AM-0001zd-Ke for help-gnu-emacs@gnu.org; Fri, 18 Jul 2014 09:25:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X88AF-00064h-Eu for help-gnu-emacs@gnu.org; Fri, 18 Jul 2014 09:25:38 -0400 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]:51252) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X88AF-00063C-3U for help-gnu-emacs@gnu.org; Fri, 18 Jul 2014 09:25:31 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 233191A8454; Fri, 18 Jul 2014 15:25:30 +0200 (CEST) X-Virus-Scanned: amavisd-new at uni-koblenz.de Original-Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mDOSCLtBGb3Z; Fri, 18 Jul 2014 15:25:29 +0200 (CEST) X-CHKRCPT: Envelopesender noch tsdh@gnu.org Original-Received: from thinkpad-t440p (dhcp25.uni-koblenz.de [141.26.71.25]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by deliver.uni-koblenz.de (Postfix) with ESMTPSA id CC52B1A844B; Fri, 18 Jul 2014 15:25:29 +0200 (CEST) In-Reply-To: (Florian Lindner's message of "Fri, 18 Jul 2014 11:03:49 +0200") User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 141.26.64.15 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:98742 Archived-At: Florian Lindner 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