简体   繁体   English

软件包从http://marmalade-repo.org/安装的Emacs自动完成功能不起作用

[英]Emacs auto-complete installed by Package from http://marmalade-repo.org/ doesn't work

I'm new to Emacs and the version is 24. 我是Emacs的新手,版本是24。

As mentioned in the title, I've installed auto-complete by Mx package-install from Marmalade-repo , and the files lies in ~/.emacs.d/elpa/auto-complete-1.4/ . 如标题中所述,我已经通过Marmalade-repoMx package-install安装了自动完成功能,文件位于~/.emacs.d/elpa/auto-complete-1.4/

Then I turned Emacs off and opened a new frame, but nothing happens when coding. 然后我关闭了Emacs并打开了一个新框架,但是在编码时什么也没有发生。

Do I need some configuration to make it run? 我需要一些配置使其运行吗?

I had this same issue. 我有同样的问题。 I fixed it by appending this to my .emacs 我通过将其附加到我的.emacs来修复它

/auto-complete/manual.html#Manual_Installation /auto-complete/manual.html#Manual_Installation

(add-to-list 'ac-dictionary-directories "~/.emacs.d/dict")
(require 'auto-complete-config)
(ac-config-default)

I had a similar problem. 我有一个类似的问题。 I tried what was suggested in the docs (and by elviejo), but that didn't work. 我尝试了文档(和elviejo)中建议的内容,但这没有用。 I then tried to do what Pedro suggested, which did work :-) The code added to my init.el file is: 然后,我尝试执行Pedro建议的操作,该操作确实有效:-)添加到我的init.el文件中的代码是:

(require 'auto-complete)
(add-to-list 'ac-dictionary-directories "~/.emacs.d/ac-dict")
(require 'auto-complete-config)
(ac-config-default)

I installed the Auto-Complete which hosted on the github repo . 我安装了托管在github repo上的Auto-Complete。 But the installation should resemble that installed by Package. 但是安装应类似于Package安装的安装。

It seems that u forgot to turn the auto-complete-mode on. 您似乎忘记了打开自动完成模式。 Add follow fragment to your .emacs.d file and have a try. 将关注片段添加到您的.emacs.d文件中,然后尝试一下。

(ac-config-default)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM