2344
|
1 |
#!/bin/bash -norc
|
2305
|
2 |
#
|
2312
|
3 |
# $Id$
|
|
4 |
#
|
2305
|
5 |
# Emacs / Isamode interface.
|
|
6 |
#
|
|
7 |
# TODO: isabelle fonts
|
|
8 |
|
|
9 |
|
|
10 |
## diagnostics
|
|
11 |
|
|
12 |
function fail()
|
|
13 |
{
|
2344
|
14 |
echo "$1" >&2
|
2305
|
15 |
exit 2
|
|
16 |
}
|
|
17 |
|
|
18 |
|
|
19 |
## main
|
|
20 |
|
2474
|
21 |
if [ -f "$ISABELLE_HOME_USER/etc/isa-settings.el" ]; then
|
|
22 |
USER_SETTINGS="--load $ISABELLE_HOME_USER/etc/isa-settings.el"
|
|
23 |
else
|
|
24 |
USER_SETTINGS=""
|
|
25 |
fi
|
|
26 |
|
|
27 |
exec emacs -name "isabelle" \
|
2600
|
28 |
--no-init-file "$@" \
|
2474
|
29 |
--load "$ISAMODE_HOME/elisp/isa-site.el" \
|
|
30 |
$USER_SETTINGS \
|
|
31 |
--load $HOME/.emacs \
|
|
32 |
--funcall isabelle
|