From 323057dcd467d4c07b440c9113d2d14ffefb5b9f Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Wed, 6 Jan 2016 12:31:25 +0900 Subject: [PATCH] emacs.el: Avoid error when no markdown program is found --- emacs.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/emacs.el b/emacs.el index 812febf..486c0fd 100644 --- a/emacs.el +++ b/emacs.el @@ -966,7 +966,8 @@ IF OK-IF-ALREADY-EXISTS is true force download." (define-key gfm-mode-map (kbd "C-m") 'electric-indent-just-newline)) (add-to-list 'auto-mode-alist (cons "\\.md\\'" 'gfm-mode)) (set-variable 'markdown-command (or (executable-find "markdown") - (executable-find "markdown.pl"))) + (executable-find "markdown.pl") + "")) (add-hook 'markdown-mode-hook (lambda () (outline-minor-mode 1)