From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "B. T. Raven" Newsgroups: gmane.emacs.help Subject: Re: windows setup for emacsclient Date: Sat, 15 Mar 2008 23:27:18 -0600 Message-ID: <2YidnVdFUe41PEHanZ2dnUVZ_ournZ2d@sysmatrix.net> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1205642504 6587 80.91.229.12 (16 Mar 2008 04:41:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 16 Mar 2008 04:41:44 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Mar 16 05:42:11 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JakhD-0007qL-MO for geh-help-gnu-emacs@m.gmane.org; Sun, 16 Mar 2008 05:42:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jakgd-0000sT-KA for geh-help-gnu-emacs@m.gmane.org; Sun, 16 Mar 2008 00:41:31 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local02.nntp.dca.giganews.com!nntp.sysmatrix.net!news.sysmatrix.net.POSTED!not-for-mail Original-NNTP-Posting-Date: Sat, 15 Mar 2008 23:27:19 -0500 User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) Original-Newsgroups: gnu.emacs.help In-Reply-To: Original-Lines: 69 X-Usenet-Provider: http://www.giganews.com Original-NNTP-Posting-Host: 65.45.140.15 Original-X-Trace: sv3-K2xSmZuxCqhRXepNUrOFeLjxZaVSZkGhoquqoX6u3/sFElnjul1byHbd+sghWUSuZ0H4XdqJnKPFsBU!YJ0+OfSeXuBARPL+R+kvEaZSZ3VngPn5iBe5YNBPSIFst2El43TvbMzlQZcbH9lvs8U4PdubbP8D!tulviPfX1je75MZxJcHWlLwaHAEPDg== Original-X-Complaints-To: abuse@sysmatrix.net X-DMCA-Complaints-To: abuse@sysmatrix.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.37 Original-Xref: shelby.stanford.edu gnu.emacs.help:157068 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:52438 Archived-At: rustom wrote: > What do I have to do to open a file with emacsclient in windows? > > Yeah I know one must first start emacs with server-start -- I am > wondering about the more windows-y part. I am, say, in windows > explorer and want to right-click file and choose open in emacsclient. > I can even do it now but I have to literally go hunting after it: > Shift-rt-click -> Open with ->Browse -> Program Files... -> emacs -> > bin -> emacsclientw -> Ok ... -> Ok > ...... every time the same bally-hoo. > > Related to this: How to give the -n option? Because otherwise when I > kill that buffer emacs pops a window at me saying the client is still > waiting for the server or some such thing. Go to a msdos prompt and type something like: ftype emacs=c:\emacs\bin\emacsclientw.exe -n "%1" but with your appropriate path (you can call the part before = whatever you want) and then (for example): assoc .txt=emacs Then with regedit make a key HKEY_CLASSES_ROOT\Applications\emacsclientw.exe\shell\Open\Command with value: c:\emacs\bin\emacsclientw.exe -n "%1" with -a switch you can add an alternate editor. I have seen this set to /path/runemacs.exe See: http://www.emacswiki.org/cgi-bin/wiki/EmacsClient under emacsclientw for vers. 22 Also under shell (i.e) HKEY_CLASSES_ROOT\Applications\emacsclientw.exe\shell I have two names: FriendlyCache FrienllyCacheCTime of types REG_SZ and REG_BINARY respectively and values GNU Emacs for Windows NT/95/98/2000/ME/XP and 00 46 bf f2 04 c1 c7 01 I have no idea what they are or where they came from. You can associate other filetypes with Emacs via assoc in a dos window or else use Tools > Folder Options > File Types in Windows Explorer. Back up the registry before you mess with it. It is intrinsically dangerous to edit it manually. It may be possible to accomplish the above without regedit but I don't know how to do it. Ed