emacs and /etc/alternatives
Matthew Miller
mattdm at mattdm.org
Thu Mar 8 22:16:57 UTC 2007
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.
--
Matthew Miller mattdm at mattdm.org <http://mattdm.org/>
Boston University Linux ------> <http://linux.bu.edu/>
More information about the Fedora-maintainers
mailing list