ambevar-dotfiles/.mutt/maileditor.sh

14 lines
363 B
Bash
Raw Normal View History

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
cat <<EOF
set editor="emc"
2013-05-24 11:44:23 +02:00
EOF
2013-05-25 13:43:22 +02:00
fi