From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?=C3=93scar_Fuentes?= Newsgroups: gmane.emacs.help Subject: Re: How to have yasnippet only for C/C++ files ? Date: Tue, 26 Mar 2019 16:43:01 +0100 Message-ID: <87o95xprp6.fsf@telefonica.net> References: <20190326110557.6cca1321@mistral> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="38619"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.90 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: jonetsu Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 26 16:48:18 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h8oJF-0009sm-HP for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Mar 2019 16:48:17 +0100 Original-Received: from localhost ([127.0.0.1]:33842 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h8oJE-0007q7-D3 for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Mar 2019 11:48:16 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:47409) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h8oHu-00073j-Ff for help-gnu-emacs@gnu.org; Tue, 26 Mar 2019 11:46:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h8oEV-0000rN-4o for help-gnu-emacs@gnu.org; Tue, 26 Mar 2019 11:43:26 -0400 Original-Received: from relayout01.e.movistar.es ([86.109.101.201]:41215 helo=relayout01-redir.e.movistar.es) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h8oEQ-0000hL-Ew for help-gnu-emacs@gnu.org; Tue, 26 Mar 2019 11:43:19 -0400 Original-Received: from sky (14.red-79-145-70.dynamicip.rima-tde.net [79.145.70.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: 981711563@telefonica.net) by relayout01.e.movistar.es (Postfix) with ESMTPSA id 44TFlB2QMPzfZxx; Tue, 26 Mar 2019 16:43:02 +0100 (CET) In-Reply-To: <20190326110557.6cca1321@mistral> (jonetsu@teksavvy.com's message of "Tue, 26 Mar 2019 11:05:57 -0400") X-CTCH-Score: 0.000 X-CTCH-ScoreCust: 0.000 X-TnetOut-Country: IP: 79.145.70.14 | Country: ES X-TnetOut-Information: AntiSPAM and AntiVIRUS on relayout01 X-TnetOut-MsgID: 44TFlB2QMPzfZxx.AC69F X-TnetOut-SpamCheck: no es spam, Unknown X-TnetOut-From: ofv@wanadoo.es X-TnetOut-Watermark: 1554219783.5693@i12/yvG6UslqyXczOq5BYg X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 86.109.101.201 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:119750 Archived-At: jonetsu writes: > So, how to enable yasnippets only for C/C++ files ? (add-hook 'c-mode-hook 'yas-minor-mode) (add-hook 'c++-mode-hook 'yas-minor-mode)