emacs - 编辑文件时史莱姆自动完成

标签 emacs autocomplete common-lisp slime

我是 Lisp 新手。我在一个盒子里安装了 LIsp 来学习 Common Lisp。在 slime-repl 中,我可以使用 tab 键使用自动完成功能。但是我想在我编辑的其他缓冲区 - 文件 - 中这样做。例如,我想执行以下操作:

C-x b  ;; Here I switch to the buffer corresponding to my file. S I am not in the repl anymore.
(remove-i  ;; Here I use the tab key, but nothing occurs.

在 repl 缓冲区中,我可以键入 (remove-i,我将看到匹配的函数,例如 remove-ifremove-if-not

如何在编辑任何其他文件时添加 lisp 自动完成功能?

最佳答案

C-M-i (translated from <M-tab>) runs the command slime-complete-symbol (found
in slime-mode-indirect-map), which is an interactive compiled Lisp function in
‘slime.el’.

It is bound to C-c TAB, C-M-i, <menu-bar> <SLIME> <Complete Symbol>.

(slime-complete-symbol)

Complete the symbol at point.

Completion is performed by ‘slime-completion-at-point-functions’.

如果需要,您可以将此函数绑定(bind)到 TAB。

彼得

关于emacs - 编辑文件时史莱姆自动完成,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32073254/

相关文章:

version - 通用 Lisp : getting version of an ASDF package

emacs - 使用邪恶键绑定(bind)时在 emacs 中按 Ctrl+U

email - Orgmode latex 导出: #+EMAIL is not exported

emacs - CEDET 覆盖颜色主题

authentication - 在需要身份验证的代理后面使用 ELPA (Emacs)

jquery - 如何更改 jQuery 自动完成插件默认查询字符串键? (我想要的术语)

macros - 将循环重写为 mapcar

javascript - 使用 javascript 自动选择下拉列表并运行 jquery

jquery - 未定义方法 `autocomplete' Rails 3 和 jquery

list - Lisp 两个列表,从每个列表中获取项目在一起