On Tue, Mar 03, 2020 at 09:11:37PM +0100, Eike Rathke wrote:
To conveniently switch between graphics and terminal editor I have the
following in muttrc

source '~/.mutt/detectgui.sh|'

and detectgui.sh contains

#!/bin/sh
if [ -n "$MUTT_USE_GVIM" -a -n "$DISPLAY" ]; then
   echo 'set editor="gvim -f"'
   echo 'set background_edit=yes'
else
   echo 'set editor=vim'
fi


So exporting MUTT_USE_GVIM=yes (or anything) in the shell invoking mutt
switches to the background editing feature. Maybe that helps some to
test it.

Replying to Aaron reminded me that you had sent a useful script too. Sorry for dropping the ball on replies!

As I said with Aaron, the same goes here. If you'd like to contribute this, or a current iteration of it, please just let me know. I'll bundle them into a background-edit group.

Thank you.

--
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA

Attachment: signature.asc
Description: PGP signature

Reply via email to