How to create a right-click context shell shortcut “edit with Emacs”?

前端 未结 8 813
离开以前
离开以前 2021-01-30 11:22

Notepad++ automatically adds a shell shortcut so that when you\'re in Windows Explorer, you can right-click on a file and select \"edit with Notepad++\". How can I do the same w

8条回答
  •  -上瘾入骨i
    2021-01-30 12:03

    With a little addition, also opening the current directory in emacs by clicking on the background becomes possible.

    <<>>
    
    [HKEY_CLASSES_ROOT\Directory\Background\shell\openwemacs]
    @="Open &with Emacs"
    [HKEY_CLASSES_ROOT\Directory\Background\shell\openwemacs\command]
    @="C:\\Program Files\\emacs-24.2\\bin\\runemacs.exe \"%V\""
    

    Here %V is the current directory. Using %1 doesn't work in this case.

提交回复
热议问题