From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: jonetsu Newsgroups: gmane.emacs.help Subject: How to have yasnippet only for C/C++ files ? Date: Tue, 26 Mar 2019 11:05:57 -0400 Message-ID: <20190326110557.6cca1321@mistral> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="112512"; mail-complaints-to="usenet@blaine.gmane.org" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 26 16:06:44 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 1h8nf1-000T5z-Fa for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Mar 2019 16:06:43 +0100 Original-Received: from localhost ([127.0.0.1]:33412 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h8nf0-0000LH-4r for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Mar 2019 11:06:42 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:40558) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h8neO-0000Ba-Fx for help-gnu-emacs@gnu.org; Tue, 26 Mar 2019 11:06:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h8neJ-0000CT-W9 for help-gnu-emacs@gnu.org; Tue, 26 Mar 2019 11:06:04 -0400 Original-Received: from pmta11.teksavvy.com ([76.10.157.34]:47044) by eggs.gnu.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1h8neJ-0000Be-Nm for help-gnu-emacs@gnu.org; Tue, 26 Mar 2019 11:05:59 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2EEOQAOP5pc/0Tb1BhkGwEBAQEfAwEBA?= =?us-ascii?q?QQBAQGBTAKBKWaBRCeNMI0IAY4PEYtgIhgBhDgCBIUmIzcGDQEBAwEBAQgBAwI?= =?us-ascii?q?CAmkohgwcOwwYNCqFT653ijMigQ4BAQEBAQEBi0GBP0CDdYV9hHIiA5F7kx4Jg?= =?us-ascii?q?gGBP49vJQyBZgGJIIhvoFojgVZwFYMogV4BjwcmgTEBBgEBARUIEwUFAQGOdQE?= =?us-ascii?q?B?= X-IPAS-Result: =?us-ascii?q?A2EEOQAOP5pc/0Tb1BhkGwEBAQEfAwEBAQQBAQGBTAKBKWa?= =?us-ascii?q?BRCeNMI0IAY4PEYtgIhgBhDgCBIUmIzcGDQEBAwEBAQgBAwICAmkohgwcOwwYN?= =?us-ascii?q?CqFT653ijMigQ4BAQEBAQEBi0GBP0CDdYV9hHIiA5F7kx4JggGBP49vJQyBZgG?= =?us-ascii?q?JIIhvoFojgVZwFYMogV4BjwcmgTEBBgEBARUIEwUFAQGOdQEB?= X-IronPort-AV: E=Sophos;i="5.60,271,1549947600"; d="scan'208";a="90654368" Original-Received: from 24-212-219-68.cable.teksavvy.com (HELO mistral) ([24.212.219.68]) by smtp.teksavvy.com with ESMTP; 26 Mar 2019 11:05:57 -0400 X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 76.10.157.34 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:119749 Archived-At: I've installed the yasnippets package and I find it great for C/C++. However I have searched about how to enable it only for C/C++ files (mode) and have found nothing so far. Many references about global mode, although I do not really want it to be global. So, how to enable yasnippets only for C/C++ files ? Thanks !