From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: andrea Newsgroups: gmane.emacs.help Subject: yasnippet and general shebang Date: Mon, 21 Dec 2009 18:06:42 +0100 Message-ID: Reply-To: andrea.crotti.0@gmail.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1261415595 19797 80.91.229.12 (21 Dec 2009 17:13:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Dec 2009 17:13:15 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 21 18:13:08 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NMloc-0008IP-DD for geh-help-gnu-emacs@m.gmane.org; Mon, 21 Dec 2009 18:13:02 +0100 Original-Received: from localhost ([127.0.0.1]:43162 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NMloc-0007ZO-DB for geh-help-gnu-emacs@m.gmane.org; Mon, 21 Dec 2009 12:13:02 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NMljH-0005CE-2Q for help-gnu-emacs@gnu.org; Mon, 21 Dec 2009 12:07:31 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NMljC-00059l-1r for help-gnu-emacs@gnu.org; Mon, 21 Dec 2009 12:07:30 -0500 Original-Received: from [199.232.76.173] (port=53039 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NMljB-00059e-U2 for help-gnu-emacs@gnu.org; Mon, 21 Dec 2009 12:07:25 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:55500) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NMlj9-0007pq-KO for help-gnu-emacs@gnu.org; Mon, 21 Dec 2009 12:07:25 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1NMlis-0005u0-O8 for help-gnu-emacs@gnu.org; Mon, 21 Dec 2009 18:07:06 +0100 Original-Received: from 40-147.eduroam.rwth-aachen.de ([134.61.40.147]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 21 Dec 2009 18:07:06 +0100 Original-Received: from andrea.crotti.0 by 40-147.eduroam.rwth-aachen.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 21 Dec 2009 18:07:06 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 19 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 40-147.eduroam.rwth-aachen.de User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.50 (darwin) Cancel-Lock: sha1:EENGEeu054cB7PU7j8KiVrKldfY= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:70782 Archived-At: I'm using a lot yasnippet and it's really great. Now for example I would like to make ! a general shebang snippet I've done it already for example for python --8<---------------cut here---------------start------------->8--- # -*- mode: snippet -*- # name: bang # key: ! # -- #!/usr/bin/env python $0 --8<---------------cut here---------------end--------------->8--- how can I make it more general? Should I just put in the root directory and it's valid for all modes? I think just using #!/usr/bin/env would be fine in, right?