Opening files with default Windows application from within emacs

前端 未结 8 1598
难免孤独
难免孤独 2021-02-07 21:06

I\'m trying to tweak the dired-find-file function in emacs on Windows XP so that when I open (say) a pdf file from dired it fires up a copy of Acrobat Reader and op

8条回答
  •  我在风中等你
    2021-02-07 21:37

    Use Dired+ for this, along with w32-browser.el

    • C-RET opens the current-line's file using its Windows file-association application.

    • M-RET opens Windows Explorer to the file or folder

    • ^, when in a root directory (e.g. C:\), moves up to a Dired-like list of all Windows drives (local and remote).

    The commands for the first two are available from w32-browser.el. (Dired+ binds them to those keys.) The command for the third is from Dired+.

提交回复
热议问题