Thread View: news.software.nn
2 messages
2 total messages
Started by Steven L. Smith
Fri, 26 Mar 1993 14:43
Options to editor
Author: Steven L. Smith
Date: Fri, 26 Mar 1993 14:43
Date: Fri, 26 Mar 1993 14:43
18 lines
1232 bytes
1232 bytes
Is there a way to pass command line options to my emacs editor used by nn. I tried the following: % setenv EDITOR '/usr/local/bin/emacs -nw -l' - when posting or replying in nn, I get the *scratch* buffer and "symbol's value as variable is void: To:" in the emacs minibuffer. - also, double quotes don't work either. Any ideas? -- ******************************************************************************* Steve Smith | Internet: smith@icat.larc.nasa.gov NASA Langley Research Center | s.l.smith@larc.nasa.gov M/S 152 | Voice: (804) 864-2004
Re: Options to editor
Author: Milt Epstein
Date: Fri, 26 Mar 1993 23:54
Date: Fri, 26 Mar 1993 23:54
39 lines
1950 bytes
1950 bytes
In <smith.733157021@news.larc.nasa.gov> smith@icat.larc.nasa.gov (Steven L. Smith) writes:
>Is there a way to pass command line options to my emacs editor
>used by nn. I tried the following:
>
>% setenv EDITOR '/usr/local/bin/emacs -nw -l'
>
>- when posting or replying in nn, I get the *scratch* buffer and
>"symbol's value as variable is void: To:" in the emacs minibuffer.
>
>- also, double quotes don't work either.
>
>Any ideas?
On some systems, EDITOR must actually point to an executable file, so
you can't give command line options like that (at least, some programs
that use EDITOR aren't happy when you do). I was on such a system,
and when I tried doing soemthing similar to what you have above, it
didn't work (although the error I got was different -- it wouldn't
even put me in the editor).
What I ended up doing was writing a little (very!) script that just
called emacs with the command line options I wanted, and then I set
EDITOR to point to that. Here's the script I use:
----------- cut here -------------
#! /bin/sh
/local/all/emacs -nw ${1+"$@"}
----------- cut here -------------
You can give this a try (you'll need to change the path to emacs, of
course).
--
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