【问题标题】:How to use Emacs auto-complete/snippets?如何使用 Emacs 自动完成/片段?
【发布时间】:2012-10-19 17:26:51
【问题描述】:

我一直在使用emacs-live,真是太棒了!

我只是不知道如何使用自动完成/sn-ps,弹出建议,您可以循环选择选项,但是如何选择选项。

我已经尝试了很多方法来让它应用选择,但似乎没有任何效果,这让我发疯了。

有人可以帮帮我吗?

【问题讨论】:

标签: emacs configuration autocomplete code-snippets emacs24


【解决方案1】:

我似乎已经通过拉取最新版本的配置解决了这个问题。不确定我改变了什么或被改变了,但它现在正在工作。

四处挖掘,我找到了一个 manual 插件:

### Summary ###

Completion will be started by inserting characters. After completion is started,
operations in the following table will be enabled temporarily. After completion
is finished, these operations will be disabled.

| Key       | Command     | Description               |
|-----------|-------------|---------------------------|
| TAB, C-i  | ac-expand   | Completion by TAB         |    
| RET, C-m  | ac-complete | Completion by RET         |
| down, M-n | ac-next     | Select next candidate     |
| up, M-p   | ac-previous | Select previous candidate |
| C-?, f1   | ac-help     | Show buffer help          |

To stop completion, simply use `C-g`.

【讨论】:

    猜你喜欢
    • 2017-04-24
    • 2011-05-04
    • 1970-01-01
    • 2013-11-01
    • 1970-01-01
    • 2013-11-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多