This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: [ANNOUNCEMENT] Updated: emacs-24.3.93-1 [TEST]
- From: Achim Gratz <Stromeko at NexGo dot DE>
- To: cygwin at cygwin dot com
- Date: Tue, 19 Aug 2014 09:26:12 +0000 (UTC)
- Subject: Re: [ANNOUNCEMENT] Updated: emacs-24.3.93-1 [TEST]
- Authentication-results: sourceware.org; auth=none
- References: <announce dot 53F1F088 dot 40706 at cornell dot edu>
Ken Brown <kbrown <at> cornell.edu> writes:
> If you have installed both emacs-w32 and emacs-X11 and prefer to give
> higher priority to emacs-w32, run the script
>
> /usr/bin/set-emacs-default-w32.sh
>
> You can later restore emacs-X11 as the default by running
>
> /usr/bin/set-emacs-default-X11.sh
These scripts put the alternatives in manual mode, you might want to
actually change the priorities and stay in auto mode.
------->8-------
#!/bin/bash
case $0 in
*w32*) prio=25
;;
*X11*) prio=15
;;
esac
for x in emacs emacsclient
do
/usr/sbin/alternatives --install /usr/bin/${x} ${x}
/usr/bin/${x}-w32.exe $prio
/usr/sbin/alternatives --auto ${x}
done
--------8<-------
Regards,
Achim.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple