Hi,

On Sunday, 2020-02-23 13:32:05 -0800, Kevin J. McCarthy wrote:

> On Mon, Feb 17, 2020 at 10:03:19AM -0800, Kevin J. McCarthy wrote:

Odd enough, I didn't receive that parent message. Anyway..

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.

  Eike

-- 
OpenPGP/GnuPG encrypted mail preferred in all private communication.
GPG key 0x6A6CD5B765632D3A - 2265 D7F3 A7B0 95CC 3918  630B 6A6C D5B7 6563 2D3A
Use LibreOffice! https://www.libreoffice.org/

Attachment: signature.asc
Description: PGP signature

Reply via email to