[Novalug] how do you get out of visudo

Kevin Cole dc.loco@gmail.com
Wed Dec 3 15:41:16 EST 2008


On Wed, Dec 3, 2008 at 15:21, Theodore Ruegsegger <gruntly@gmail.com> wrote:
> Mackenzie wrote:
>> Pretty sure it's EDITOR, since I think that's the only one Ubuntu sets,
>> and it's the reason someone replied (offlist) that Ubuntu for some
>> reason has a help thing at the bottom of its visudo.  Ubuntu sets
>> EDITOR=nano
>
> Or you can just redefine the symlink at /etc/alternatives/editor to
> point to /usr/bin/emacs instead of /usr/bin/nano.
>
> I go a bit further, installing a script at /usr/local/bin/emacssansx
> and pointing to that, because I want all my terminal-invoked editing
> to remain in the terminal even if I have X11 running. The script is a
> one-liner:
>
> emacs -nw $*

Seems like a bit of overkill, what.  Any reason not to set an alias to
do the same thing in your .bash_aliases (or wherever you keep your
aliases)?



More information about the Novalug mailing list