【发布时间】:2016-01-08 08:19:03
【问题描述】:
我使用 emacs 和 markdown-mode 来编写 markdown 文件。
当我按C-c C-c p 调用浏览器预览我的markdown 文件时,它会运行以下代码。
(defun markdown-preview (&optional output-buffer-name)
"Run `markdown-command' on the current buffer and view output in browser.
When OUTPUT-BUFFER-NAME is given, insert the output in the buffer with
that name."
(interactive)
(browse-url-of-buffer (markdown-standalone markdown-output-buffer-name)))
它将调用我的默认系统浏览器 Firefox。但是我想调用 Chrome 来预览我的 markdown 文件,我不想修改我的默认系统浏览器。
如何修改代码调用Chrome?
【问题讨论】: