On Mon, Feb 08, 2010 at 10:22:03AM +0300, Andrew Borodin wrote: > On Sun, 7 Feb 2010 12:10:17 -0500 Haines Brown KB1GRM ET1 wrote: > > The way to do this typically seems to change the value of the variable > > $EDITOR, but I don't want to do that system-wide, but only for mc, so > > that F4 brings up emacsclient to edit files, and nano is the default > > editor system-wide. > > > > How would I manage to do that? Unable to find help. > > MC contains two wrappers for bash: /etc/bashrc.d/mc.sh and > /usr/lib/mc/mc-wrapper.sh. > The same wrappers are exist for csh. But in your MC build that scripts > can be located in different places. You can redefine the EDITOR variable > in one of them.
Andrew, 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. Haines _______________________________________________ Mc mailing list http://mail.gnome.org/mailman/listinfo/mc
