[email protected]
[Top] [All Lists]

Re: replace mcedit with emacsclient without chaning $EDITOR

Subject: Re: replace mcedit with emacsclient without chaning $EDITOR
From: Andrew Borodin
Date: Tue, 09 Feb 2010 09:13:00 +0300
On Mon, 8 Feb 2010 19:38:15 -0500 Haines Brown KB1GRM ET1 wrote:
> Tbanks, but apparently I missed something. I have a 
> /usr/share/mc/bin/mc-wrapper.sh. In it I append the line:
> 
>   EDITOR=/usr/bin/emacsclient
> 
> The mc editor, however, remains nano. The line is ignored.

Please write exactly what you did.

/usr/share/mc/bin/mc-wrapper.sh must be run directly or via some wrapper
like /etc/bashrc.d/mc.sh.

In mc-wrapper.sh, I added

EDITOR=/usr/bin/vim

line before 

/usr/bin/mc -P "$MC_PWD_FILE" "[email protected]"

then started mc and unchecked the 'use internal edIt' option. If I
press F4 key, the selected file is opened in vim.

-- 
Andrew
_______________________________________________
Mc mailing list
http://mail.gnome.org/mailman/listinfo/mc

<Prev in Thread] Current Thread [Next in Thread>