Skip to content

Instantly share code, notes, and snippets.

@merrickluo
Created January 4, 2017 14:14
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 merrickluo/68f0111df99600e0a0c6d706c86bc457 to your computer and use it in GitHub Desktop.
Save merrickluo/68f0111df99600e0a0c6d706c86bc457 to your computer and use it in GitHub Desktop.
windows open with emacs context menu https://www.emacswiki.org/emacs/MsWindowsGlobalContextMenu
REGEDIT4
[HKEY_CLASSES_ROOT\*\shell]
[HKEY_CLASSES_ROOT\*\shell\openwemacs]
@="&Open With Emacs"
"Icon"="C:\\Program Files\\Emacs\\bin\\emacs.exe,0"
# 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.)
[HKEY_CLASSES_ROOT\*\shell\openwemacs\command]
@="C:\\Program Files\\Emacs\\bin\\emacsclientw -n -a \"C:\\Program Files\\Emacs\\bin\\runemacs\" \"%1\""
# 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