Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 472
Jonas Fredriksson Avatar asked Oct 26 '12 12:10

Jonas Fredriksson


1 Answers

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)
like image 61
Oleg Pavliv Avatar answered Nov 20 '22 01:11

Oleg Pavliv