Notepad++ automatically adds a shell shortcut so that when you're in Windows Explorer, you can right-click on a file and select "edit with Notepad++". How can I do the same with emacs? I am using GNU Emacs 22.3 for Windows.
相关问题
- Symbol's function definition is void: declare-
- Inheritance impossible in Windows Runtime Componen
- how to get running process information in java?
- Is TWebBrowser dependant on IE version?
- How can I have a python script safely exit itself?
相关文章
- 如何让cmd.exe 执行 UNICODE 文本格式的批处理?
- 怎么把Windows开机按钮通过修改注册表指向我自己的程序
- Warning : HTML 1300 Navigation occured?
- ess-rdired: I get this error “no ESS process is as
- Bundling the Windows Mono runtime with an applicat
- Windows 8.1 How to fix this obsolete code?
- Emacs/xterm color annoyance on Linux
- CosmosDB emulator can't start since port is al
Just like polyglot's answer, but no need to start a server or any of that mess.
Here's is another way to do the same thing. Works in WinXP and Vista.
Add this to your registery:
edit-with-emacs.reg
Place this file in your emacs bin directory:
launch-emacs-client.vbs
Note: the W32 installer runs a similar script on installation.
I want to add to polyglot's answer above -- the AutoHotkey shortcut he mentions is very handy, but the code is incomplete: the GetText() function was written by somebody on the AutoHotkey forum (http://www.autohotkey.com/forum/viewtopic.php?p=279576#279576), and it is:
Note that ClipWait delay might need to be modified: I had to set it to 2!
This site explains how to do it with another app. Just change the path and you should be all set.
Create this key/value:
Here's another reference, which is a little easier to follow.
Check out an Emacs distribution with Windows integration: http://ourcomments.org/Emacs/EmacsW32.html
Its installer creates an Explorer menu entry which does what you want.
With a little addition, also opening the current directory in emacs by clicking on the background becomes possible.
Here
%V
is the current directory. Using%1
doesn't work in this case.