如果Firefox实例已打开,则将Emacs通用浏览器设置为Firefox不起作用。 我们收到以下错误消息: “关闭Firefox:Firefox的副本已经打开。”。
以下是我在Emacs中设置浏览器的方法。
(setq browse-url-browser-function 'browse-url-generic
engine/browser-function 'browse-url-generic
;; Chrome because Firefox will complain that a copy is already open.
browse-url-generic-program "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome")
Chrome实际上将重定向调用以将新实例打开到调用中以打开现有实例中的新标签。
有没有办法用firefox实现同样的目的?