如何使Emacs Org模式的打开链接指向Google Chrome浏览器中的网站? [英] How can I make Emacs Org-mode open links to sites in Google Chrome?
问题描述
Google Chrome设置为默认浏览器.但是,它会在Firefox中打开链接,这是不希望的.
Google Chrome is set as the default browser. However, it opens links in Firefox, which is undesired.
如何使组织模式在Google Chrome浏览器中打开链接?
How can I make Org-mode to open links in Google Chrome?
推荐答案
Emacs 23.2不直接支持Google Chrome,但它确实支持通用"浏览器.浏览器,这样的方法应该可以工作:
Emacs 23.2 doesn't directly support Google Chrome, but it does support a "generic" browser, and something like this should work:
(setq browse-url-browser-function 'browse-url-generic
browse-url-generic-program "chromium-browser")
您没有提到您的操作系统,但是如果是Windows或Mac,则可以尝试:
You don't mention your OS, but if it's Windows or Mac, you can try:
(setq browse-url-browser-function 'browse-url-default-windows-browser)
(setq browse-url-browser-function 'browse-url-default-macosx-browser)
并且,如果那行不通,那么还有其他人已经实现了'browse-url-chrome
.Google打开了以下链接:
And, if that doesn't work, there are other folks who have implemented 'browse-url-chrome
. Google turned up the following link:
这篇关于如何使Emacs Org模式的打开链接指向Google Chrome浏览器中的网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!