Emacs org-mode file/viewer associations

前端 未结 2 2197
鱼传尺愫
鱼传尺愫 2021-02-18 16:04

In an Emacs org-mode file, when I click on a PDF the file opens in a PDF viewer. Similarly, when I click on a URL it opens in a web browser. But when I click on a path to an i

2条回答
  •  别那么骄傲
    2021-02-18 16:40

    It depends a bit on what operating system you use, but it should be configurable with org-file-apps.

    • On OS X, I would use open (or open -a Application.app) for opening files automagically
    • On Linux/BSD etc, I would use xdg-open (a bit tricky to setup, tho)
    • On windows, I guess I would use open (in the console)

    Look at the variables org-file-apps-defaults-windowsnt, org-file-apps-defaults-gnu or org-file-apps-defaults-macosx depending on your plattform.

提交回复
热议问题