emacs and /etc/alternatives
Toshio Kuratomi
a.badger at gmail.com
Thu Mar 8 22:46:57 UTC 2007
On Thu, 2007-03-08 at 17:16 -0500, Matthew Miller wrote:
> On Thu, Mar 08, 2007 at 02:05:42PM -0800, Toshio Kuratomi wrote:
> > > Why is a script that checks a user-defined ENV variable preferable to
> > > a user-defined shell alias?
> > Example: network shared home directories. When mounted on the server, I
> > might have emacs-nox, on the lab computer emacs-gtk and emacs-nox, and
> > on my workstation emacs-gtk only. If the home directory is nfs mounted
> > how can I set the alias in this environment? Having a script that does
> > autodetection and has a "user prefers" setting makes more sense.
>
>
> But it's trivial. If you always want the text version:
>
> alias emacs "emacs -nw"
>
> and if you want the GUI version when available, don't alias anything.
>
Depends on your reason for wanting the text version :-) If you just
want to use it within a terminal then -nw works. If you don't want to
load the gtk libraries then you have to actually use -nox. (Not as much
of an issue in these days of openoffice, firefox, and evolution, I
know :-)
-Toshio
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-maintainers/attachments/20070308/319fb565/attachment.sig>
More information about the Fedora-maintainers
mailing list