Skip to content

Instantly share code, notes, and snippets.

@k0f1sh
Created December 11, 2013 18:27
Show Gist options
  • Save k0f1sh/7915775 to your computer and use it in GitHub Desktop.
Save k0f1sh/7915775 to your computer and use it in GitHub Desktop.
emacs lispをスクリプトとして使う
#!/bin/bash
#
# emacs lispをスクリプトとして実行する
# 第一引数はelファイル、それ以降はそのelに渡す引数
# 標準エラー出力への出力を抑制している
emacs --script $1 ${@:2:($#-1)} 2> /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment