Article View: news.software.nn
Article #6813Re: default editor of nn
From: Milt Epstein
Date: Tue, 29 Nov 1994 22:33
Date: Tue, 29 Nov 1994 22:33
38 lines
1893 bytes
1893 bytes
Nancy McGough <nancym@ii.com> writes:
>s237012@apollo23.uni-trier.de (Mario Charles) writes:
>>I already tried to include the string "EDITOR = pico" in my
>>.cshrc
>
>If you do not set nn's editor variable in ~/.nn/init then
>NN uses the $EDITOR environment variable. For example,
>a csh user can put these two lines in his .cshrc:
>
> setenv EDITOR "pico -t -z"
> setenv VISUAL "$EDITOR"
[ ... ]
FWIW, some programs that use the EDITOR environment variable don't
like it when it's set to something that isn't a path to a file (i.e.
no options allowed). This was a problem on one system I use (I guess
it must've been the mail program I was using, since I know it was
either that or nn, and the above apparently works for some people with
nn).
Anyway, the way I got around it was as follows (I wanted to use emacs
with the -nw option as my editor). I created a file
$HOME/scripts/nwemacs which contains:
#!/bin/sh
/local/all/emacs -nw ${1+"$@"}
and I put the following in my .login:
setenv $HOME/scripts/nwemacs
--
Milt Epstein
Department of Computer Science
University of Illinois
epstein@cs.uiuc.edu
Technical Details
Message-ID:
<epstein.786148410@ta6.cs.uiuc.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!bga.com!news.sprintlink.net!howland.reston.ans.net!vixen.cso.uiuc.edu!ta6.cs.uiuc.edu!epsteinReferences:
<s237012.785773466@apollo23> <3bbg8g$3q2@news.halcyon.com>Show Full Headers
Complete Article Headers
Message-ID: <epstein.786148410@ta6.cs.uiuc.edu> Subject: Re: default editor of nn Date: Tue, 29 Nov 1994 22:33:30 +0000 From: epstein@ta6.cs.uiuc.edu (Milt Epstein) References: <s237012.785773466@apollo23> <3bbg8g$3q2@news.halcyon.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!bga.com!news.sprintlink.net!howland.reston.ans.net!vixen.cso.uiuc.edu!ta6.cs.uiuc.edu!epstein Newsgroups: news.software.nn Organization: University of Illinois at Urbana Lines: 38 Reply-To: epstein@cs.uiuc.edu NNTP-Posting-Host: ta6.cs.uiuc.edu Keywords: vi versus pico