diff options
Diffstat (limited to 'app-emacs/markdown-mode/files/markdown-mode-2.4-markdown-command.patch')
-rw-r--r-- | app-emacs/markdown-mode/files/markdown-mode-2.4-markdown-command.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/app-emacs/markdown-mode/files/markdown-mode-2.4-markdown-command.patch b/app-emacs/markdown-mode/files/markdown-mode-2.4-markdown-command.patch new file mode 100644 index 000000000000..1ae481d6c094 --- /dev/null +++ b/app-emacs/markdown-mode/files/markdown-mode-2.4-markdown-command.patch @@ -0,0 +1,14 @@ +dev-python/markdown2 and dev-python/markdown install their commands +as markdown2 and markdown_py, respectively. + +--- markdown-mode-2.4-orig/markdown-mode.el ++++ markdown-mode-2.4/markdown-mode.el +@@ -90,7 +90,7 @@ + :group 'text + :link '(url-link "https://jblevins.org/projects/markdown-mode/")) + +-(defcustom markdown-command (let ((command (cl-loop for cmd in '("markdown" "pandoc") ++(defcustom markdown-command (let ((command (cl-loop for cmd in '("markdown" "pandoc" "markdown2" "markdown_py") + when (executable-find cmd) + return (file-name-nondirectory it)))) + (or command "markdown")) |