Skip to content

Instantly share code, notes, and snippets.

@kat-co
kat-co / elisp-script.el
Created September 26, 2015 01:47
A yasnippet to create elnode scripts that are executable by any shell (Windows, bash, etc.)
# -*- 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()