Flymd and it's configuration to get around chrome not working

This commit is contained in:
Kienan Stewart 2016-11-11 17:26:31 -05:00
parent 79d9dce3e1
commit 82819b5de0
2 changed files with 7 additions and 0 deletions

1
Cask
View File

@ -12,6 +12,7 @@
(depends-on "flycheck")
(depends-on "flycheck-cask")
(depends-on "flycheck-pyflakes")
(depends-on "flymd")
(depends-on "htmlize")
(depends-on "idle-highlight-mode")
(depends-on "js2-mode")

View File

@ -32,3 +32,9 @@
c-basic-offset 3)
(add-to-list 'auto-mode-alist '("\\.js$" . js2-mode))
; Flymd's flyit doesn't work well with chrome/chromeium
(defun my-flymd-browser-function (url)
(let ((browse-url-browser-function 'browse-url-firefox))
(browse-url url)))
(setq flymd-browser-open-function 'my-flymd-browser-function)