Skip to content

Instantly share code, notes, and snippets.

@nileshk
Created March 9, 2017 20:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nileshk/f124d9aa1b47fe1b53859e7ed990c022 to your computer and use it in GitHub Desktop.
Save nileshk/f124d9aa1b47fe1b53859e7ed990c022 to your computer and use it in GitHub Desktop.
Emacs Registry Entry to configure Windows context menu
REGEDIT4
[HKEY_CLASSES_ROOT\*\shell]
[HKEY_CLASSES_ROOT\*\shell\openwemacs]
@="&Emacs"
# The above value appears in the global context menu,
# i.e., when you right click on a file.
# (The '&' makes the next character a shortcut.)
"Icon"="C:\\Programs\\emacs\\bin\\emacs.exe,0"
# The above uses the icon of the Emacs exe for the context
# and should match the path used for the command below.
# The ,0 selects the main icon.
[HKEY_CLASSES_ROOT\*\shell\openwemacs\command]
@="C:\\Programs\\emacs\\bin\\emacsclientw.exe \"%1\" --alternate-editor C:\\Programs\\emacs\\bin\\runemacs.exe"
# The above has to point to where you install Emacs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment