Created
September 26, 2015 01:47
-
-
Save kat-co/9a51ed7f5ac8cc874b26 to your computer and use it in GitHub Desktop.
A yasnippet to create elnode scripts that are executable by any shell (Windows, bash, etc.)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: snippet; require-final-newline: nil -*- | |
# name: elisp script | |
# key: script | |
# -- | |
:;exec emacs -batch -l "\$0" -f ${1:main} "$@" --no-site-file -q # -*- Emacs-Lisp -*- | |
;; @emacs -batch -l "%~f0" -f $1 %* --no-site-file -q & goto :EOF | |
(require 'cl) | |
(defun $1() | |
$2) | |
;;:EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment