* yasnippet and general shebang
@ 2009-12-21 17:06 andrea
0 siblings, 0 replies; only message in thread
From: andrea @ 2009-12-21 17:06 UTC (permalink / raw)
To: help-gnu-emacs
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 <major-mode - "mode">
would be fine in, right?
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-12-21 17:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-21 17:06 yasnippet and general shebang andrea
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.