From f6655ab2e9bf92cf4bfb329904d72ce69b51dffb Mon Sep 17 00:00:00 2001 From: Bozhidar Batsov Date: Fri, 20 Apr 2012 12:09:12 +0300 Subject: [PATCH] added a fix for markdown-mode --- prelude/prelude-auto-install.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/prelude/prelude-auto-install.el b/prelude/prelude-auto-install.el index 7359d30..d16bcde 100644 --- a/prelude/prelude-auto-install.el +++ b/prelude/prelude-auto-install.el @@ -53,6 +53,12 @@ ("\\.less\\'" . less-css-mode) ("\\.lua\\'" . lua-mode))) +;; markdown-mode doesn't have autoloads for the auto-mode-alist +;; so we add them manually if it's already installed +(when (package-installed-p 'markdown-mode) + (add-to-list 'auto-mode-alist '("\\.markdown\\'" . markdown-mode)) + (add-to-list 'auto-mode-alist '("\\.md\\'" . markdown-mode))) + (dolist (entry prelude-auto-install-alist) (let ((ext (car entry)) (mode (cdr entry)))