[Top][All Lists]

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

yasnippet and general shebang

From: andrea
Subject: yasnippet and general shebang
Date: Mon, 21 Dec 2009 18:06:42 +0100
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.50 (darwin)

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
--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 <major-mode - "mode">
would be fine in, right?

reply via email to

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