From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?B?IkrDqXLDtG1lIE0uIEJlcmdlciI=?= Newsgroups: gmane.emacs.help Subject: Re: Best practices for launching Emacs on Windows 7/8 Date: Tue, 19 Feb 2013 19:44:02 +0100 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigCB40BB17D070A9191841BF7F" X-Trace: ger.gmane.org 1361299486 5368 80.91.229.3 (19 Feb 2013 18:44:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 Feb 2013 18:44:46 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 19 19:45:07 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U7sBf-00065i-3P for geh-help-gnu-emacs@m.gmane.org; Tue, 19 Feb 2013 19:45:07 +0100 Original-Received: from localhost ([::1]:57649 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7sBL-0001OM-2C for geh-help-gnu-emacs@m.gmane.org; Tue, 19 Feb 2013 13:44:47 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:41537) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7sB2-0001Mh-OL for help-gnu-emacs@gnu.org; Tue, 19 Feb 2013 13:44:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U7sAx-0005DH-4m for help-gnu-emacs@gnu.org; Tue, 19 Feb 2013 13:44:28 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:52597) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7sAw-0005Cl-UK for help-gnu-emacs@gnu.org; Tue, 19 Feb 2013 13:44:23 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1U7sB8-0005lH-A9 for help-gnu-emacs@gnu.org; Tue, 19 Feb 2013 19:44:34 +0100 Original-Received: from def92-4-82-224-197-72.fbx.proxad.net ([82.224.197.72]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 19 Feb 2013 19:44:34 +0100 Original-Received: from jeberger by def92-4-82-224-197-72.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 19 Feb 2013 19:44:34 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 61 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: def92-4-82-224-197-72.fbx.proxad.net User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.24) Gecko/20120206 Thunderbird/2.0.0.24 Mnenhy/0.7.6.666 In-Reply-To: X-Enigmail-Version: 0.96.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:89166 Archived-At: This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigCB40BB17D070A9191841BF7F Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Ludwig, Mark wrote: > What are the best practices for using/launching Emacs as Server > on Windows 7/8? >=20 > For example, on Windows Vista, I used to be able to make a file > association with .TXT files that invoked emacsclient with the > --alternate-editor=3Drunemacs option so that if Emacs wasn't > running, it would be launched. >=20 > In Windows 7 and 8, the GUI simply does not allow any options. I > am not sure if I could hack the registry directly to stuff the > options in there, but since the GUI no longer supports it, I fear > the underlying support might not be there either. I have > considered trying to associate .TXT with something like a > Emacs.BAT/Emacs.CMD file that could invoke emacsclient with > options, but this has its own problems, and seems like a bad idea > for ultimately launching a "windows mode" program Emacs.exe > (which is not a "command line mode" program). >=20 > I am wondering what others do. >=20 > Perhaps I'm expecting too much automation, for example, the idea > that if Emacs Server isn't already running, it gets launched > seamlessly? >=20 I use emacsclient with the --alternate-editor=3Drunemacs option in Windows 7. Can't remember for sure how I set it up (I'm at home on Linux right now), but I'm sure I did it from the GUI without any fancy registry editing or stuff. IIRC you need to first create the shortcut without specifying command line options, then go to the shortcut properties (with A-RET or the context menu) where you should find a field to add the options (can't remember whether there is a specific field or whether you can add the options directly after the executable name). Jerome --=20 mailto:jeberger@free.fr http://jeberger.free.fr Jabber: jeberger@jabber.fr --------------enigCB40BB17D070A9191841BF7F Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iEYEARECAAYFAlEjx/IACgkQd0kWM4JG3k8Y2ACcDrYTr5Ph5wCRokqZ/Jt0wSGA n94Anisl7vZcz2BoYg+b8mlWJH3vfe7T =UTAr -----END PGP SIGNATURE----- --------------enigCB40BB17D070A9191841BF7F--