From 46d31840e901bd65e4618d7bf687d7caba4dd070 Mon Sep 17 00:00:00 2001 From: Abizer Nasir Date: Mon, 31 Mar 2014 15:18:59 +0100 Subject: [PATCH 1/2] Open files with .cl extension in lisp-mode I'm surprised that this isn't already the case. Although most people use the .lisp extension, some do use .cl --- modules/prelude-common-lisp.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/prelude-common-lisp.el b/modules/prelude-common-lisp.el index 2aa98fb..2a199fa 100644 --- a/modules/prelude-common-lisp.el +++ b/modules/prelude-common-lisp.el @@ -37,6 +37,9 @@ ;; the SBCL configuration file is in Common Lisp (add-to-list 'auto-mode-alist '("\\.sbclrc$" . lisp-mode)) +;; Open files with .cl extension in lisp-mode +(add-to-list 'auto-mode-alist '("\\.cl\\'" . lisp-mode)) + ;; Common Lisp support depends on SLIME being installed with Quicklisp (if (file-exists-p (expand-file-name "~/quicklisp/slime-helper.el")) (load (expand-file-name "~/quicklisp/slime-helper.el")) From 4b680ddfc69801a17db66939c6a0d60c11905509 Mon Sep 17 00:00:00 2001 From: Abizer Nasir Date: Tue, 1 Apr 2014 08:23:01 +0100 Subject: [PATCH 2/2] Correct terminator for .sbclrc --- modules/prelude-common-lisp.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/prelude-common-lisp.el b/modules/prelude-common-lisp.el index 2a199fa..1fd25e8 100644 --- a/modules/prelude-common-lisp.el +++ b/modules/prelude-common-lisp.el @@ -35,7 +35,7 @@ (require 'prelude-lisp) ;; the SBCL configuration file is in Common Lisp -(add-to-list 'auto-mode-alist '("\\.sbclrc$" . lisp-mode)) +(add-to-list 'auto-mode-alist '("\\.sbclrc\\'" . lisp-mode)) ;; Open files with .cl extension in lisp-mode (add-to-list 'auto-mode-alist '("\\.cl\\'" . lisp-mode))