如何让 Emacs 组织模式打开谷歌浏览器中网站的链接? [英] How can I make Emacs Org-mode open links to sites in Google Chrome?
问题描述
谷歌浏览器被设置为默认浏览器.但是,它会在 Firefox 中打开链接,这是不受欢迎的.
Google Chrome is set as the default browser. However, it opens links in Firefox, which is undesired.
如何使 Org-mode 在 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
.谷歌打开了以下链接:
And, if that doesn't work, there are other folks who have implemented 'browse-url-chrome
. Google turned up the following link:
这篇关于如何让 Emacs 组织模式打开谷歌浏览器中网站的链接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!