From 3439bdcb47f41a06d2d6568defc7bbc11c262058 Mon Sep 17 00:00:00 2001 From: René Neumann Date: Mon, 21 Nov 2011 14:46:34 +0100 Subject: Added support for jedit. --- .zsh/functions/IE | 14 ++++++++++---- .zsh/functions/IJ | 1 + 2 files changed, 11 insertions(+), 4 deletions(-) create mode 120000 .zsh/functions/IJ diff --git a/.zsh/functions/IE b/.zsh/functions/IE index d7832fd..c65c93b 100644 --- a/.zsh/functions/IE +++ b/.zsh/functions/IE @@ -1,7 +1,13 @@ -# default arguments to isabelle emacs -readonly defargs="-x true -m iff" readonly default="HOL" -local file logic +local file logic program defargs + +if [[ $0 == "IJ" ]]; then + program="jedit" + defargs="" +else + program="emacs" + defargs="-x true -m iff" +fi # safety check to avoid failing later on if [[ ! -x =isabelle ]]; then @@ -70,6 +76,6 @@ if [[ -z $logic ]]; then fi # AAAAND ... FIRE! -isabelle emacs ${=defargs} "$@" -l $logic $file +isabelle ${program} ${=defargs} "$@" -l $logic $file # vim: ft=zsh diff --git a/.zsh/functions/IJ b/.zsh/functions/IJ new file mode 120000 index 0000000..ae92333 --- /dev/null +++ b/.zsh/functions/IJ @@ -0,0 +1 @@ +IE \ No newline at end of file -- cgit v1.2.3-70-g09d2