Add Emacs to the Windows file menu

This registry script adds an option "Open In Emacs" to the Windows Explorer menu. Save it to a file called "addemacs.reg" and then click on it to add it to the registry. It works in Vista and Windows XP.

Windows Registry Editor Version 5.00
;
; This registry script adds an "Open In Emacs" command to the file menu.
;
[HKEY_CLASSES_ROOT\*\Shell\Open In Emacs\Command]
@="\"C:\\Program Files\\emacs-23.1\\bin\\emacsclientw.exe\" -n -a \"C:\\Program Files\\emacs-23.1\\bin\\runemacs.exe\" \"%1\""

This uses "emacsclient" with the -n (--nowait) and -a (--alternate-editor) options. See GNU Emacs manual Emacsclient options.

This registry script assumes that your Emacs top directory is "C:\Program Files\emacs-23.1\".

Web links


Copyright © Ben Bullock 2009-2017. All rights reserved. For comments, questions, and corrections, please email Ben Bullock (benkasminbullock@gmail.com). / Privacy / Disclaimer