When I start aquamacs with the autocompletion program
installed, http://cx4a.org/software/auto-complete/, with a lisp file that has el
as an extension (example.el
)
Then all lisp features are loaded into aquamacs
including autocompletion.
But when I load a common lisp file (example.lisp
) no autocompletion features are loaded.
So my question is, is it possible to change the autocompletion code so also common lisp files are recognized?
Thanks
From autocomplete manual:
Enable
auto-complete-mode
automatically for specific modes
auto-complete-mode
won't be enabled automatically for modes that are not inac-modes
. So you need to set if necessary:
(add-to-list 'ac-modes 'brandnew-mode)
Or in your case
(add-to-list 'ac-modes 'lisp-mode)
Just for info. By default the following modes are included
(defcustom ac-modes
'(emacs-lisp-mode
lisp-interaction-mode
c-mode cc-mode c++-mode
java-mode clojure-mode scala-mode
scheme-mode
ocaml-mode tuareg-mode
perl-mode cperl-mode python-mode ruby-mode
ecmascript-mode javascript-mode js-mode js2-mode php-mode css-mode
makefile-mode sh-mode fortran-mode f90-mode ada-mode
xml-mode sgml-mode)
"Major modes `auto-complete-mode' can run on."
:type '(repeat symbol)
:group 'auto-complete)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With