From 82819b5de07e51d4f8178ae7bf1b524d19cde5cc Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Fri, 11 Nov 2016 17:26:31 -0500 Subject: [PATCH] Flymd and it's configuration to get around chrome not working --- Cask | 1 + init.el | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/Cask b/Cask index d114328..2ce5cbf 100644 --- a/Cask +++ b/Cask @@ -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") diff --git a/init.el b/init.el index a2a63d2..783d58a 100644 --- a/init.el +++ b/init.el @@ -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)