Thread View: news.software.nn
5 messages
5 total messages
Started by Jun Shih
Mon, 31 Jan 1994 01:07
set default editor for nn
Author: Jun Shih
Date: Mon, 31 Jan 1994 01:07
Date: Mon, 31 Jan 1994 01:07
8 lines
882 bytes
882 bytes
How do I set my default editor for nn? right now I am prompted for editor every time I post a news. Thanks in advance. -- Jun Shih <umshih02@cs.umanitoba.ca>
Re: set default editor for nn
Author: Craig Werner
Date: Mon, 31 Jan 1994 02:32
Date: Mon, 31 Jan 1994 02:32
11 lines
1179 bytes
1179 bytes
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. Craig Werner <cwerner@nyx10.cs.du.edu>
Re: set default editor for nn
Author: R. Stewart Ellis
Date: Sun, 06 Feb 1994 13:58
Date: Sun, 06 Feb 1994 13:58
30 lines
2018 bytes
2018 bytes
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. >Craig Werner <cwerner@nyx10.cs.du.edu> I get my editor of choice when I post or followup and I do not have editor set in either /usr/local/lib/nn/setup nor in ~/.nn/init. If I type :set editor while in nn, I am told NULL. I am running tcsh on SunOS 4.1.3 and do not have an editor or visual shell variable set. I do have EDITOR set as an environment variable. I posted that before and the original requester said it did not work for him. I would like for several people to properly set the environment variable EDITOR and export it if using sh, ksh or bash and tell me it does not work. I am running with about a 2-year old version of nn with the patches that were current at the time. -- 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,News and modem maintainer, all around hack /________/ / / / /
Re: set default editor for nn
Author: R. Stewart Ellis
Date: Sun, 06 Feb 1994 14:07
Date: Sun, 06 Feb 1994 14:07
28 lines
1849 bytes
1849 bytes
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. >Craig Werner <cwerner@nyx10.cs.du.edu> 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. -- 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,News and modem maintainer, all around hack /________/ / / / /
Re: set default editor for nn
Author: 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
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