I have followed this steps: https://www.emacswiki.org/emacs/MsWindowsGlobalContextMenu.
emacs-context-menu.reg
:
Windows Registry Editor Version 5.00;; Be sure to set the correct path to Emacs on your system![HKEY_CURRENT_USER\Software\Classes\*\shell];; Open file in new frame[HKEY_CURRENT_USER\Software\Classes\*\shell\emacsopennewframe]@="&Emacs: Edit in new window""icon"="C:\\Program Files\\Emacs\\emacs-29.2\\bin\\emacsclientw.exe"[HKEY_CURRENT_USER\Software\Classes\*\shell\emacsopennewframe\command]@="C:\\Program Files\\Emacs\\emacs-29.2\\bin\\emacsclientw.exe -n --alternate-editor=\"C:\\Program Files\\Emacs\\emacs-29.2\\bin\\runemacs.exe\" -c \"%1\""
Once I run it, the option is added to the menu, but when I click it I get this error message:
Emacsclient ERRORC:\Program Files\Emacs\emacs-29.2\bin\emacsclientw.exe: error executing alternate editor "C:\Program Files\Emacs\emacs-29.2\bin\runemacs.exe"