如何使emacs org-mode打开链接到Google Chrome中的网站 [英] How to make emacs org-mode open links to sites in Google Chrome

查看:304
本文介绍了如何使emacs org-mode打开链接到Google Chrome中的网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Chrome设置为默认浏览器,但它会在Firefox中打开链接,这是不希望的。

Chrome is set as default browser, however it opens links in Firefox, which is undesired.

Google搜索不会显示任何有用的东西,所以你有什么想法?

Googling this doesn't reveal anything useful, so do you have any ideas?

推荐答案

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:

  • http://code.ohloh.net/search?s=browse-url-chrome&browser=Default

这篇关于如何使emacs org-mode打开链接到Google Chrome中的网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆