all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Oleksandr Gavenko <gavenkoa@gmail.com>
To: help-gnu-emacs@gnu.org
Cc: help-emacs-windows@gnu.org
Subject: Re: [h-e-w] [windows Q] `emacs here' like windows power tool `cmdprompt here'
Date: Tue, 24 Aug 2010 23:11:49 +0300	[thread overview]
Message-ID: <i51927$kda$1@dough.gmane.org> (raw)
In-Reply-To: <4BA15CCCD0DD844ABF971A1DEA6ED02BB165FB@Mail1.Distekcorp.local>

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.reg 
 >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 <emacs-root>\bin under PATH.

-- 
Best regards!




  parent reply	other threads:[~2010-08-24 20:11 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-23 18:15 [windows Q] `emacs here' like windows power tool `cmd prompt here' Harry Putnam
2010-08-23 21:06 ` Burton Samograd
2010-08-23 21:53 ` [h-e-w] [windows Q] `emacs here' like windows power tool `cmdprompt here' Bryan Guthrie
2010-08-24 13:50   ` Harry Putnam
2010-08-24 15:53     ` Harry Putnam
2010-08-24 20:11   ` Oleksandr Gavenko [this message]
2010-08-27 14:00     ` Harry Putnam

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='i51927$kda$1@dough.gmane.org' \
    --to=gavenkoa@gmail.com \
    --cc=help-emacs-windows@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.