Opening files with default Windows application from within emacs

前端 未结 8 1721
难免孤独
难免孤独 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:58

    Tom Smith's answer is nice, but you can also just run the program "start" with the filename as an argument.

    (shell-command (concat "start " (shell-quote-argument filename)))
    

提交回复
热议问题