[1605] in athena10

home help back first fref pref prev next nref lref last post

Re: EDITOR and VISUAL

daemon@ATHENA.MIT.EDU (Evan Broder)
Fri Mar 13 12:27:48 2009

Message-ID: <49BA8948.1020007@mit.edu>
Date: Fri, 13 Mar 2009 12:26:48 -0400
From: Evan Broder <broder@MIT.EDU>
MIME-Version: 1.0
To: Jonathan Reed <jdreed@mit.edu>
CC: Greg Price <price@mit.edu>, Tim Abbott <tabbott@mit.edu>,
   debathena@mit.edu
In-Reply-To: <1402CC74-E3E5-4059-8550-B05F1CCBC16F@mit.edu>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Jonathan Reed wrote:
> Aside: I assume sensible-editor defaults to nano in tty mode and gedit
> for X11, or something like that.  I'm not opposed to moving to those
> sometime down the road, but as I've noted elsewhere, we have a lot of
> documentation investment in Emacs, and currently lack the resources to
> document nano or gedit.

sensible-editor defaults to $EDITOR. If that's not set, it tries
/usr/bin/editor (/etc/alternatives managed editor - defaults to nano).
If that doesn't work, it tries nano. If that doesn't work, it tries
nano-tiny. If that doesn't work, it tries vim. And if that doesn't work,
it errors.

It doesn't do anything special if it's invoked from X. I don't think we
should worry about it.

Just setting $EDITOR should work fine.

- Evan

home help back first fref pref prev next nref lref last post