emacs - aquamacs 上常见的 lisp 自动完成

标签 emacs autocomplete lisp common-lisp aquamacs

当我使用自动完成程序启动 aquamacs 时 安装,http://cx4a.org/software/auto-complete/ ,带有一个以 el 作为扩展名的 lisp 文件 (example.el)
然后将所有 lisp 功能加载到 aquamacs 中,包括自动完成功能。
但是当我加载一个普通的 lisp 文件 (example.lisp) 时,没有加载自动完成功能。

所以我的问题是,这可能吗 更改自动完成代码,因此常见的 lisp 文件也是 认出来了吗?

谢谢

最佳答案

来自自动完成手册:

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)

或者在你的情况下

(add-to-list 'ac-modes 'lisp-mode)

仅供引用。默认包含以下模式

(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)

关于emacs - aquamacs 上常见的 lisp 自动完成,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13087065/

相关文章:

jsf - PrimeFaces 自动完成 : itemSelect versus change events

lisp - 为什么 plant1 一直是 NIL?

list - 如何将文件中的列表添加到 Lisp

Emacs Shift-Tab 左移 block

emacs - 在 emacs 中禁用自动完成的弹出菜单

c++ - 为什么 QLineEdit with QCompleter for auto completion 没有出现?

emacs - 有这么多括号,你如何有效地输入 lisp?

emacs - 如何使Emacs C源目录永久化?

emacs - Emacs 的下拉菜单

python - el-get 安装的包加载问题 emacs-jedi