[ANNOUNCEMENT] Updated: emacs-24.3.93-1 [TEST]

Achim Gratz Stromeko@NexGo.DE
Tue Aug 19 09:26:00 GMT 2014


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



More information about the Cygwin mailing list