common lisp auto completion on aquamacs

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 in ac-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)
链接地址: http://www.djcxy.com/p/11346.html

上一篇: Rails在我之后不开火

下一篇: 在aquamacs上通用lisp自动完成