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
This commit is contained in:
Abizer Nasir 2014-03-31 15:18:59 +01:00
parent 43c4209dee
commit 46d31840e9

View file

@ -37,6 +37,9 @@
;; the SBCL configuration file is in Common 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))
;; Common Lisp support depends on SLIME being installed with Quicklisp ;; Common Lisp support depends on SLIME being installed with Quicklisp
(if (file-exists-p (expand-file-name "~/quicklisp/slime-helper.el")) (if (file-exists-p (expand-file-name "~/quicklisp/slime-helper.el"))
(load (expand-file-name "~/quicklisp/slime-helper.el")) (load (expand-file-name "~/quicklisp/slime-helper.el"))