Re: replace mcedit with emacsclient without chaning $EDITOR
- From: Andrew Borodin <aborodin vmail ru>
- To: mc gnome org
- Subject: Re: replace mcedit with emacsclient without chaning $EDITOR
- 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" "$@"
then started mc and unchecked the 'use internal edIt' option. If I
press F4 key, the selected file is opened in vim.
--
Andrew
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]