delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/08/19/05:28:06

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:from:subject:date:message-id:references
:mime-version:content-type:content-transfer-encoding; q=dns; s=
default; b=PinUU27xQ5eK9y5zMnnOFyxILW4potRg5tLENWiQPPxCjEfLlaQF0
OBfmuWVCXMSbc1hc3OfBHrrWBWZkMv7vJ5MGAI9U8Osy8dficIQd8HLMjwT2se9a
j2Dk+uvKpegNxP+s+Dk8q+0KOrzfzJvfCSfuBBAb8sPkG5kq3txqjE=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:from:subject:date:message-id:references
:mime-version:content-type:content-transfer-encoding; s=default;
bh=0Zl8m5WzLGAv8mVqrjGkH3YnXyE=; b=kH3xEU/aQVVgKkQ8FyUSN2B7/N5T
RSup24TjoazNzTs0t+bkzUA/d/sxecoH6EJIb23/xQ7W1L35TAu012baYr2dnOid
xMZM7XnmAcVpqI/ftIY+vwsjVBJIDbVd+4VAGf9ZhMG8deT2wKDyVmXrsR/Y/kus
hqMMgpTcBJGD9Ek=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-3.9 required=5.0 tests=AWL,BAYES_50,FSL_HELO_BARE_IP_2,RCVD_IN_DNSWL_LOW,RCVD_NUMERIC_HELO,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=no version=3.3.2
X-HELO: plane.gmane.org
To: cygwin AT cygwin DOT com
From: Achim Gratz <Stromeko AT NexGo DOT DE>
Subject: Re: [ANNOUNCEMENT] Updated: emacs-24.3.93-1 [TEST]
Date: Tue, 19 Aug 2014 09:26:12 +0000 (UTC)
Lines: 31
Message-ID: <loom.20140819T112035-568@post.gmane.org>
References: <announce DOT 53F1F088 DOT 40706 AT cornell DOT edu>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019