I'm a happy user of Emacs and SLIME.
It looks like SLIME is aware of only files with the extension ".lisp" and not others such as ".cl" or ".asd"
How can I make SLIME aware of and work with different file extensions? Thanks.
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It only takes a minute to sign up.
Sign up to join this communityI'm a happy user of Emacs and SLIME.
It looks like SLIME is aware of only files with the extension ".lisp" and not others such as ".cl" or ".asd"
How can I make SLIME aware of and work with different file extensions? Thanks.
Try adding:
(add-to-list 'auto-mode-alist '("\\.cl\\'" . slime-mode))
(add-to-list 'auto-mode-alist '("\\.asd\\'" . slime-mode))
to your init/config file. Then files with those extensions will use slime-mode
by default. This pattern of (add-to-list 'auto-mode-alist '("\\.EXTENSION\\'" . MODE))
is a good way to have files with the extension EXTENSION open in the mode MODE. Just be careful that you have the "\\.EXTENSION\\'"
part, which is a regular expression, formatted correctly (with slashes and quotes in the right places), or you will will not get the results you want.