Thread View: news.software.nn
6 messages
6 total messages
Started by Mario Charles
Fri, 25 Nov 1994 14:24
default editor of nn
Author: Mario Charles
Date: Fri, 25 Nov 1994 14:24
Date: Fri, 25 Nov 1994 14:24
18 lines
1144 bytes
1144 bytes
Hallo! Got a little problem: How can I change nn's default editor to an other? Here's my systems status: UNIX C-Shell default editor is vi want to install pico as default I already tried to include the string "EDITOR = pico" in my .cshrc respectively my .profile, but it didn't make any change... Maybe there's a way to include it in the .param (created by nn)? Bye, MC.
Re: default editor of nn
Author: Sven Guckes
Date: Sat, 26 Nov 1994 09:55
Date: Sat, 26 Nov 1994 09:55
41 lines
2248 bytes
2248 bytes
s237012@apollo23.uni-trier.de (Mario Charles) writes:
>How can I change nn's default editor to an other?
FAQ!
Please read the NN FAQ:
Subject: Can I use my editor to edit posts and replies?
From: 8.6
>Here's my systems status: UNIX C-Shell default editor is vi
>Want to install pico as defaultA.
:set editor /path/pico
>I already tried to include the string "EDITOR = pico" in my
>.cshrc respectively my .profile, but it didn't make any change...
Take a look at the init file - maybe the variable "editor" is set there!
>Maybe there's a way to include it in the .param (created by nn)?
That's not a proper place.
From the manual:
FILES
[...]
~/.nn/.param Parameter file for the aux script
Sven
--
Sven Guckes guckes@inf.fu-berlin.de
Pointer to the NN FAQ (list of frequently asked questions) [last update: 941122]
Usenet: Newsgroups: Newsgroups: news.software.nn,news.answers
Subject: NN Frequently Asked Questions (FAQ) with Answers
WWW: http://www.cis.ohio-state.edu/hypertext/faq/usenet/nn-faq/top.html
MailServ: To: mail-server@rtfm.mit.edu
(body of mail) send /usenet/news.answers/nn-faq/part1
Anon FTP: ftp://rtfm.mit.edu/pub/usenet/news.answers/nn-faq/part1
ftp://ftp.uu.net/archive/usenet/news.answers/nn-faq/part1.Z
ftp://ftp.cs.ruu.nl/pub/NEWS.ANSWERS/nn-faq/part1
Re: default editor of nn
Author: R. Stewart Ellis
Date: Sat, 26 Nov 1994 15:59
Date: Sat, 26 Nov 1994 15:59
34 lines
1792 bytes
1792 bytes
s237012@apollo23.uni-trier.de (Mario Charles) writes: >Hallo! >Got a little problem: >How can I change nn's default editor to an other? >Here's my systems status: >UNIX >C-Shell >default editor is vi >want to install pico as default >I already tried to include the string "EDITOR = pico" in my >.cshrc respectively my .profile, but it didn't make any change... Uppercase variables are usually environment variable, which are set with the setenv directive. setenv EDITOR pico Is the proper way. I have not looked at the code for this, but I doubt nn will find a csh variable that is not an env variable. >Maybe there's a way to include it in the .param (created by nn)? >Bye, MC. -- R.Stewart(Stew) Ellis, Assoc.Prof., (Off)313-762-9765 ___________________ Humanities & Social Science, GMI Eng.& Mgmt. Inst. / _____ ______ Flint, MI 48504 ellis@nova.gmi.edu / / / / / / Gopher,chimera,nn,tin,jove,modems, free code is best!/________/ / / / /
Re: default editor of nn
Author: Bill Dunn
Date: Sun, 27 Nov 1994 17:38
Date: Sun, 27 Nov 1994 17:38
14 lines
1069 bytes
1069 bytes
ellis@nova.gmi.edu (R. Stewart Ellis) writes: >s237012@apollo23.uni-trier.de (Mario Charles) writes: > >Hallo! > >Got a little problem: > >How can I change nn's default editor to an other? Add the following line to your .cshrc file: setenv EDITOR "pico" -- William G. Dunn 76104.72@compuserve.com, wdunn@access.digex.net
Re: default editor of nn
Author: Nancy McGough
Date: Mon, 28 Nov 1994 02:45
Date: Mon, 28 Nov 1994 02:45
22 lines
1442 bytes
1442 bytes
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" The -t means use Pico in tool mode and the -z enables suspending with ^z. For NN you don't need to set VISUAL but you might as well so that programs that use that variable for the editor specification will also use Pico. -Nancy -- /\_/\ ( o.o ) Nancy McGough <URL:http://www.jazzie.com/ii/> > ^ < Infinite Ink <URL:ftp://ftp.halcyon.com/pub/ii>
Re: default editor of nn
Author: 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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads