aboutsummaryrefslogtreecommitdiffstats
path: root/modules/init-markdown.el
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2019-05-12 17:26:22 -0500
committerJesús <heckyel@hyperbola.info>2019-05-12 17:26:22 -0500
commita6793d5df96322fc5cd2fb85b9644328a9e774b0 (patch)
treea3a3c85239cbc0125f94b7f4b6bfa8520b622509 /modules/init-markdown.el
parentb3fb11ab7dc14aeb00bc122facd7dd4dfd47f98e (diff)
downloademacs-personal-a6793d5df96322fc5cd2fb85b9644328a9e774b0.tar.lz
emacs-personal-a6793d5df96322fc5cd2fb85b9644328a9e774b0.tar.xz
emacs-personal-a6793d5df96322fc5cd2fb85b9644328a9e774b0.zip
define custom browser into markdown-mode
Diffstat (limited to 'modules/init-markdown.el')
-rw-r--r--modules/init-markdown.el11
1 files changed, 10 insertions, 1 deletions
diff --git a/modules/init-markdown.el b/modules/init-markdown.el
index b7032db..2ba6325 100644
--- a/modules/init-markdown.el
+++ b/modules/init-markdown.el
@@ -30,7 +30,16 @@
(goto-char (point-max))
(insert "\n"
"</body>\n"
- "</html>\n")))
+ "</html>\n"))
+
+ ;;----------------------------------------------------------------------------
+ ;; Define custom browser
+ ;;----------------------------------------------------------------------------
+ (defvar browse-url-generic-program)
+ (setq browse-url-generic-program "iceweasel-uxp")
+ (defadvice markdown-preview (around markdown-preview-in-chromium activate compile)
+ (let ((browse-url-browser-function #'browse-url-generic))
+ ad-do-it)))
(provide 'init-markdown)