Windows
For Windows, create a temporary org-protocol.reg file:
bash
REGEDIT4
[HKEY_CLASSES_ROOT\org-protocol]
@="URL:Org Protocol"
"URL Protocol"=""
[HKEY_CLASSES_ROOT\org-protocol\shell]
[HKEY_CLASSES_ROOT\org-protocol\shell\open]
[HKEY_CLASSES_ROOT\org-protocol\shell\open\command]
@="\"C:\\Windows\\System32\\wsl.exe\" emacsclient \"%1\""The above will forward the protocol to WSL. If you run Emacs natively on Windows, replace the last line with:
bash
@="\"c:\\path\\to\\emacs\\bin\\emacsclientw.exe\" \"%1\""After executing the .reg file, the protocol is registered and you can delete the file.