From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Oleksandr Gavenko Newsgroups: gmane.emacs.help,gmane.emacs.windows Subject: Re: [h-e-w] [windows Q] `emacs here' like windows power tool `cmdprompt here' Date: Tue, 24 Aug 2010 23:11:49 +0300 Message-ID: References: <87bp8t5h68.fsf@newsguy.com> <4BA15CCCD0DD844ABF971A1DEA6ED02BB165FB@Mail1.Distekcorp.local> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1282680765 21182 80.91.229.12 (24 Aug 2010 20:12:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 24 Aug 2010 20:12:45 +0000 (UTC) Cc: help-emacs-windows@gnu.org To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 24 22:12:42 2010 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.69) (envelope-from ) id 1OnzrL-0005hO-Eq for geh-help-gnu-emacs@m.gmane.org; Tue, 24 Aug 2010 22:12:39 +0200 Original-Received: from localhost ([127.0.0.1]:46417 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OnzrK-0001At-RU for geh-help-gnu-emacs@m.gmane.org; Tue, 24 Aug 2010 16:12:38 -0400 Original-Received: from [140.186.70.92] (port=44672 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Onzqr-0001Ao-DF for help-gnu-emacs@gnu.org; Tue, 24 Aug 2010 16:12:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Onzqq-0002a4-38 for help-gnu-emacs@gnu.org; Tue, 24 Aug 2010 16:12:09 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:42516) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Onzqp-0002Zu-Nv for help-gnu-emacs@gnu.org; Tue, 24 Aug 2010 16:12:08 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Onzqk-0004yq-AA for help-gnu-emacs@gnu.org; Tue, 24 Aug 2010 22:12:02 +0200 Original-Received: from 13-96-92-178.pool.ukrtel.net ([178.92.96.13]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 24 Aug 2010 22:12:02 +0200 Original-Received: from gavenkoa by 13-96-92-178.pool.ukrtel.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 24 Aug 2010 22:12:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 61 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 13-96-92-178.pool.ukrtel.net User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 In-Reply-To: <4BA15CCCD0DD844ABF971A1DEA6ED02BB165FB@Mail1.Distekcorp.local> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:74798 gmane.emacs.windows:4731 Archived-At: On 2010-08-24 0:53, Bryan Guthrie wrote: > StackOverflow has a "How to" page that may be helpful: > http://stackoverflow.com/questions/455077/how-to-create-a-right-click-context-shell-shortcut-edit-with-emacs > The site refers to "emacsclientw.exe", but "gnuclientw.exe" settings > would be similar, for example: > REGEDIT4 > ; This puts "emacs" into the right-click menu in Windows Explorer. > [HKEY_CLASSES_ROOT\*\shell] > @="" > [HKEY_CLASSES_ROOT\*\shell\emacs] > @="&Emacs" > [HKEY_CLASSES_ROOT\*\shell\emacs\command] > @="C:\\emacs\\bin\\gnuclientw -q \"%L\"" > Best regards, > Bryan > > ------------------------------------------------------------------------ > *From:* Harry Putnam [mailto:reader@newsguy.com] > *Sent:* Mon 8/23/2010 1:15 PM > *To:* help-emacs-windows@gnu.org > *Cc:* help-gnu-emacs@gnu.org > *Subject:* [h-e-w] [windows Q] `emacs here' like windows power tool > `cmdprompt here' > > My subject line is probably a miss-quote since I don't recall what the > MS `power tool' was called that allowed user to open a dos command > window at whatever directory she was browsing using a right click > menu. > > If anyone knows what I'm talking about, maybe you'll know if anyone > has ever written something for emacs that would allow user to open an > emacs terminal at whatever directory she is browsing. > > I use such code for "Open in Emacs..." dialog on files: ============ Makefile =========== .PHONY: install install: EMACSCLIENT_PATH=`cygpath -w $$(which emacsclientw) | sed 's=\\\\=&&&&=g'`; \ sed "s=@@path-to-emacsclient@@=$$EMACSCLIENT_PATH=g" emacs.tmp.reg; \ reg import emacs.tmp.reg; rm emacs.tmp.reg ============ Makefile =========== =========== emacs.reg =========== Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\*\shell\emacs] @="Open with Emacs ..." [HKEY_CLASSES_ROOT\*\shell\emacs\command] @="@@path-to-emacsclient@@ -a runemacs -n \"%1\"" =========== emacs.reg =========== This require Cygwin and native (non Cygwin!) GNU Emacs and \bin under PATH. -- Best regards!