rex spake unto us the following wisdom:
> OBMutt content:
> I've not been happy with the *nix editors, but just switched to
> using xjed, and it looks good so far. However, sometimes I want
> to run Mutt outside of X. How can I tell Mutt to use xjed under X,
> and jed when not in X?
I use a script similar to the following for this very thing:
----- bin/editor -----
#!/bin/sh
if [ $DISPLAY ]; then
exec xjed $@ -tmp -f mail_mode
else
exec jed $@ -tmp -f mail_mode
fi
----- end script -----
and then set $EDITOR (or editor w/in mutt) to ~/bin/editor.
It works great for me. :-)
Ethan