如何使emacs组织模式打开指向Google Chrome中站点的链接? [英] How to make emacs org-mode open links to sites in Google Chrome?
本文介绍了如何使emacs组织模式打开指向Google Chrome中站点的链接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Google Chrome
被设置为默认浏览器,但是它会在Firefox中打开链接,这是不希望的.
Google Chrome
is set as the default browser, however it opens links in Firefox, which is undesired.
如何使org-mode
打开Google Chrome
中的链接?
推荐答案
Emacs 23.2不直接支持chrome,但确实支持通用"浏览器,并且这样的方法应该可以工作:
Emacs 23.2 doesn't directly support 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 links:
这篇关于如何使emacs组织模式打开指向Google Chrome中站点的链接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文