[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [h-e-w] Re: [windows Q] `emacs here' like windows power tool `cmdpro

From: David Vanderschel
Subject: Re: [h-e-w] Re: [windows Q] `emacs here' like windows power tool `cmdprompt here'
Date: Mon, 23 Aug 2010 17:21:50 -0500

I used to have a setup similar to what Eli is suggesting under
Windows 98.  (I also had it set up so that, if the OS did not
recognize a file extension or if it was blank, then opening such
a file always sent it to emacsclient (or the then functional
equivalent).)  (Alas, I have not gotten around to trying to set
up something similar under Windows XP.)  I think that these
capabilities are so useful that it would be good idea to provide
support for setting this up in the Win32 installer.  Lennart, are
you listening?

 David V.

PS - I do think the thing to use is emacsclient as opposed to
runemacs, as emacsclient will invoke runemacs anyway if emacs is
not already running.  I'd also use the no-wait option.

----- Original Message ----- From: Eli Daniel
To: address@hidden
Sent: Monday, August 23, 2010 4:32 PM
Subject: Re: [h-e-w] Re: [windows Q] `emacs here' like windows
power tool `cmdprompt here'

I have two such commands I use -- one for directories to open in
dired, and another on files.  To get these, you'll need to edit
your registry:

Under HKEY_CLASSES_ROOT\*\shell, create a key whose name is the
text you want to see in the Windows context menus for files.
Mine says "Open with Emacs".

Beneath that new key, create another key called command.  Set its
default value to the command line to run when you choose the menu
item.  Mine is:
   C:\tools\emacs-23.1\bin\emacsclient.exe -n -a
C:\tools\emacs-23.1\bin\runemacs.exe "%1"

As soon as you edit this in regedit, you should have a working
context-menu item for files.

To get this to work on directories, repeat the same exercise, but
put it under HKEY_CLASSES_ROOT\Folder\shell.


On Mon, Aug 23, 2010 at 5:06 PM, Burton Samograd
<address@hidden> wrote:

Harry Putnam <address@hidden> writes:

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
window at whatever directory she was browsing using a right

If anyone knows what I'm talking about, maybe you'll know if
has ever written something for emacs that would allow user to
open an
emacs terminal at whatever directory she is browsing.

Here's one that was made for cygwin:

It seems to be just a registry patch file, so you might be able
to edit
to edit in a 'runemacs.exe -f shell ...' to get what you're
looking for.

Burton Samograd

reply via email to

[Prev in Thread] Current Thread [Next in Thread]