From 3bc0af52d5fc4059c60fa37f8894b1739338821e Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Mon, 9 Mar 2015 00:40:17 -0400 Subject: [PATCH] Add missing autoload cookies Some auto-mode-alist settings didn't have an autoload cookie applied (correctly), making them effectively useless. Add the missing cookies to make the behavior consistent. --- ghc-core.el | 1 + ghci-script-mode.el | 3 +++ 2 files changed, 4 insertions(+) diff --git a/ghc-core.el b/ghc-core.el index 03d0a5318..ffe4d900f 100644 --- a/ghc-core.el +++ b/ghc-core.el @@ -111,6 +111,7 @@ in the current buffer." ;;;###autoload (add-to-list 'auto-mode-alist '("\\.hcr\\'" . ghc-core-mode)) +;;;###autoload (add-to-list 'auto-mode-alist '("\\.dump-simpl\\'" . ghc-core-mode)) ;;;###autoload diff --git a/ghci-script-mode.el b/ghci-script-mode.el index cab666629..5ba3ed06d 100644 --- a/ghci-script-mode.el +++ b/ghci-script-mode.el @@ -27,6 +27,7 @@ ("^:[a-z{]+ *\\+" . font-lock-keyword-face) ("^:[a-z{]+ " . font-lock-keyword-face))) +;;;###autoload (define-derived-mode ghci-script-mode text-mode "GHCi-Script" "Major mode for working with .ghci files." (set (make-local-variable 'adaptive-fill-mode) nil) @@ -48,7 +49,9 @@ (set (make-local-variable 'dabbrev-abbrev-char-regexp) "\\sw\\|[.]") (setq haskell-literate nil)) +;;;###autoload (add-to-list 'auto-mode-alist '("\\.ghci\\'" . ghci-script-mode)) + (define-key ghci-script-mode-map (kbd "C-c C-l") 'ghci-script-mode-load) (defun ghci-script-mode-load ()