【问题标题】:Slime Autocompletion when editing file编辑文件时粘液自动补全
【发布时间】:2015-08-19 01:34:22
【问题描述】:

我是 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 自动完成功能?

【问题讨论】:

    标签: emacs autocomplete common-lisp slime


    【解决方案1】:
    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’.
    

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

    彼得

    【讨论】:

      猜你喜欢
      • 2012-11-12
      • 2011-04-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-09-03
      相关资源
      最近更新 更多