2013-05-24 11:44:23 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
## Seems like $EDITOR is internal to Mutt, whereas variable set between
|
|
|
|
## backquotes are external. By default Mutt will use env EDITOR variable, so we
|
|
|
|
## do not really need to set it.
|
|
|
|
# set editor=`echo \$EDITOR`
|
|
|
|
## If graphical emacs is used, we need to use a non-terminating client.
|
|
|
|
|
2013-05-25 13:43:22 +02:00
|
|
|
if [ "$EDITOR" = "em" ]; then
|
2014-11-12 18:00:08 +01:00
|
|
|
cat <<EOF
|
2013-05-27 08:36:39 +02:00
|
|
|
set editor="emc"
|
2013-05-24 11:44:23 +02:00
|
|
|
EOF
|
2013-05-25 13:43:22 +02:00
|
|
|
fi
|