From 20b4788146f246920c9ad156017f67228700890d Mon Sep 17 00:00:00 2001 From: Igor Shymko Date: Wed, 1 Apr 2015 00:01:37 +0300 Subject: [PATCH] markdown preview mode now respects gfs-mode --- markdown-preview-mode.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/markdown-preview-mode.el b/markdown-preview-mode.el index 9f94bc6..8835491 100644 --- a/markdown-preview-mode.el +++ b/markdown-preview-mode.el @@ -150,7 +150,9 @@ "Markdown preview mode" :group 'markdown-preview-mode :init-value nil - (when (not (equal major-mode 'markdown-mode)) + (when (not (or + (equal major-mode 'markdown-mode) + (equal major-mode 'gfm-mode))) (markdown-mode)) (if markdown-preview-mode (mdpm:start)