diff options
Diffstat (limited to 'app-emacs/markdown-mode/files')
-rw-r--r-- | app-emacs/markdown-mode/files/50markdown-mode-gentoo.el | 2 | ||||
-rw-r--r-- | app-emacs/markdown-mode/files/markdown-mode-2.1-text-auto-mode.patch | 23 |
2 files changed, 25 insertions, 0 deletions
diff --git a/app-emacs/markdown-mode/files/50markdown-mode-gentoo.el b/app-emacs/markdown-mode/files/50markdown-mode-gentoo.el index 6a83e601b026..fb4a5cba03e8 100644 --- a/app-emacs/markdown-mode/files/50markdown-mode-gentoo.el +++ b/app-emacs/markdown-mode/files/50markdown-mode-gentoo.el @@ -1,3 +1,5 @@ (add-to-list 'load-path "@SITELISP@") (autoload 'markdown-mode "markdown-mode" "Major mode for editing Markdown files" t) +(add-to-list 'auto-mode-alist '("\\.markdown\\'" . markdown-mode)) +(add-to-list 'auto-mode-alist '("\\.md\\'" . markdown-mode)) diff --git a/app-emacs/markdown-mode/files/markdown-mode-2.1-text-auto-mode.patch b/app-emacs/markdown-mode/files/markdown-mode-2.1-text-auto-mode.patch new file mode 100644 index 000000000000..91449c6daa54 --- /dev/null +++ b/app-emacs/markdown-mode/files/markdown-mode-2.1-text-auto-mode.patch @@ -0,0 +1,23 @@ +From a70e74e0eedb436c4126ac69b0beaa4ab848b78e Mon Sep 17 00:00:00 2001 +From: Steve Purcell <steve@sanityinc.com> +Date: Mon, 14 Mar 2016 09:18:16 +1300 +Subject: Remove autoload for .text + +While .md and .markdown are clearly markdown files, the handling of .text is not a choice that markdown-mode should be making on the user's behalf without any opportunity to prevent it. + +diff --git a/markdown-mode.el b/markdown-mode.el +index b7a32cc..978e040 100644 +--- a/markdown-mode.el ++++ b/markdown-mode.el +@@ -6634,8 +6634,6 @@ BEG and END are the limits of scanned region." + ;;;###autoload + (add-to-list 'auto-mode-alist '("\\.markdown\\'" . markdown-mode)) + ;;;###autoload +-(add-to-list 'auto-mode-alist '("\\.text\\'" . markdown-mode)) +-;;;###autoload + (add-to-list 'auto-mode-alist '("\\.md\\'" . markdown-mode)) + + +-- +cgit v0.10.2 + |