Re: [mu TECH] an 'mc' tweak, changing 'mc's default editor

From: jef knoors (jknoors@zonnet.nl)
Date: Fri Jun 02 2000 - 20:38:56 CEST


The message below states: Jef Knoors nicely wrote.....
It was Karl-Heinz who wrote it.
Jef
----- Original Message -----
From: Michele Andreoli <m.andreoli@tin.it>
To: <mulinux@sunsite.auc.dk>
Sent: Friday, June 02, 2000 5:30 PM
Subject: Re: [mu TECH] an 'mc' tweak, changing 'mc's default editor

> On Fri, Jun 02, 2000 at 04:11:02PM +0200, Jef Knoors nicely wrote:
> >
> > Please let me suggest an enhancement:
> >
> > Due to the fact that most people prefer using the same editor throughout
> > the system and do everything with 'their' editor (and taking into
account
> > that the Gurus who wrote 'The pragmatic programmer' also suggest to use
> > only *one* editor but use this one tool *good*) I would prefer to have
> > kind of a ''general-editor-switch'' in the Setup that would do two
things:
> >
> > a) change the meaning of the 'vi' command by creating a link to
> >
> > - vi
> > - ae
> > - mc -e (Midnight Commander's text editor "Cooledit v2.1")
> >
>
>
> I do not know very well mc; but a link in this case do not work.
> I have to create the /usr/bin/vi *script*:
>
> #!/bin/sh
> . /setup/cnf/misc.cnf
> case $EDITOR in
> vi) exec elvis $@;;
> ae) exec ae $@;;
> mc) exec mc -e $@
> esac
>
> Michele
> --
> I'd like to conclude with a positive statement, but I can't
> remember any. Would two negative ones do? -- Woody Allen
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: mulinux-unsubscribe@sunsite.auc.dk
> For additional commands, e-mail: mulinux-help@sunsite.auc.dk
>

---------------------------------------------------------------------
To unsubscribe, e-mail: mulinux-unsubscribe@sunsite.auc.dk
For additional commands, e-mail: mulinux-help@sunsite.auc.dk



This archive was generated by hypermail 2.1.6 : Sat Feb 08 2003 - 15:27:14 CET