Article View: news.software.nn
Article #2904Re: Setting Editor
From: Ofer Inbar
Date: Thu, 02 Jul 1992 14:13
Date: Thu, 02 Jul 1992 14:13
33 lines
2194 bytes
2194 bytes
hades@coos.dartmouth.edu (Hades) writes: >rahayden@news.weeg.uiowa.edu (Silicon Avatar) writes: >>Got a question. I would like to know how to change the editor from emacs >>to pico. >> >>I use the ':set editor pico' command, but it is not made permanent after I >>exit nn. Is there a way to make sure that these change stays for my next >>session? > > Put this line in your .cshrc file (assuming you are on a Unix >machine). > > setenv EDITOR pico > > Or if this is already being set to emacs, change it to pico. You >should note that this is a global change, and you are setting your Unix >default editor to pico. The above works if your shell is either csh or tcsh (and you don't have a .tcshrc file). If you're using ksh, the file you want to edit is .profile, and the syntax is: EDITOR=pico ; export EDITOR If you want to make this change for nn only, and continue using another editor for everything else, then you can put a line in your ~/.nn/init file like this: "set editor pico". In general, you can put any valid nn :command in your init file, before the "sequence" line, and it will be run automatically every time you start nn. As a final recommendation, read the nn manual sometime. :manual -- Cos (Ofer Inbar) -- cos@chaos.cs.brandeis.edu -- WBRS (BRiS) -- WBRS@binah.cc.brandeis.edu WBRS@brandeis.bitnet "Good literature is about Love and War." "Junk fiction is about Sex and Violence."
Technical Details
Message-ID:
<cos.710086426@chaos.cs.brandeis.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!sparky!uunet!centerline!noc.near.net!news.cs.brandeis.edu!chaos.cs.brandeis.edu!cosReferences:
<1992Jul1.022601.28783@news.weeg.uiowa.edu> <1992Jul1.122044.26575@dartvax.dartmouth.edu>Show Full Headers
Complete Article Headers
Message-ID: <cos.710086426@chaos.cs.brandeis.edu> Subject: Re: Setting Editor Date: Thu, 2 Jul 1992 14:13:46 GMT From: cos@chaos.cs.brandeis.edu (Ofer Inbar) References: <1992Jul1.022601.28783@news.weeg.uiowa.edu> <1992Jul1.122044.26575@dartvax.dartmouth.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!sparky!uunet!centerline!noc.near.net!news.cs.brandeis.edu!chaos.cs.brandeis.edu!cos Newsgroups: news.software.nn Keywords: editor Sender: news@news.cs.brandeis.edu (USENET News System) Organization: Brandeis University Lines: 34