Article View: news.software.nn
Article #5416Re: set default editor for nn
From: Milt Epstein
Date: Sun, 06 Feb 1994 17:10
Date: Sun, 06 Feb 1994 17:10
41 lines
2490 bytes
2490 bytes
In <ellis.760543629@nova> ellis@nova.gmi.edu (R. Stewart Ellis) writes: >cwerner@nyx10.cs.du.edu (Craig Werner) writes: > > >umshih02@neon.cs.umanitoba.ca (Jun Shih) writes: > > >>How do I set my default editor for nn? > > > >Include the line > > > >set editor x > > > >in your ~/.nn/init file, where "x" is the name of the editor you wish. > >I just reset my EDITOR shell variable from jove to joe after exiting from >nn, reentered nn, typed 'f' to this message and am now typing in joe. This >should work in almost any nn if I am not mistaken. If it does not, the only >explanation I can think of is that the editor is being set in ~/.nn/init, >although it is a design flaw if that takes precedence over an environment >variable, or the poster who told me it did not work was running a bourne >type shell and did not export the variable. Setting the EDITOR environment variable should work to set the editor nn uses. I have not heard of that not working before, so if that doesn't seem to work, I would suspect it's some problem with that variable not being set properly (e.g. it being set to an incorrect value, or as you suggest, it not being "exported" properly in certain shells). Setting the nn variable editor overrides the EDITOR environment variable, so there could be problems also if that is set improperly. And having this overriding behavior is the proper design -- in general, you want the more specific settings (in this case, the nn variable editor) to override the more general ones (in this case, the EDITOR environment variable). -- Milt Epstein Department of Computer Science University of Illinois epstein@cs.uiuc.edu
Technical Details
Message-ID:
<CKtBpL.AEv@sparc0a.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!gmd.de!Germany.EU.net!EU.net!howland.reston.ans.net!vixen.cso.uiuc.edu!cs.uiuc.edu!gooshie!ta9.cs.uiuc.edu!epsteinReferences:
<umshih02.759978479@neon.cs.umanitoba.ca> <1994Jan31.023259.22279@mnemosyne.cs.du.edu> <ellis.760543629@nova>Show Full Headers
Complete Article Headers
Message-ID: <CKtBpL.AEv@sparc0a.cs.uiuc.edu> Subject: Re: set default editor for nn Date: Sun, 6 Feb 1994 17:10:33 GMT From: epstein@ta9.cs.uiuc.edu (Milt Epstein) References: <umshih02.759978479@neon.cs.umanitoba.ca> <1994Jan31.023259.22279@mnemosyne.cs.du.edu> <ellis.760543629@nova> 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!gmd.de!Germany.EU.net!EU.net!howland.reston.ans.net!vixen.cso.uiuc.edu!cs.uiuc.edu!gooshie!ta9.cs.uiuc.edu!epstein Newsgroups: news.software.nn Sender: news@sparc0a.cs.uiuc.edu Reply-To: epstein@cs.uiuc.edu Organization: University of Illinois at Urbana-Champaign Lines: 41