Common Lisp auto completion in emacs

Update

Apparently, the auto-complete package is not the culprit.
Emacs fails to download melpa archive.

A quick google search indicates that this is a reappearing problem both on windows and unix machines.

As there are already threads concerning failed to download 'melpa' archive (none of which helped unfortunately) this thread may or may not be closed.

Inital Question

I'm trying to set up emacs for Common Lisp. I installed sbcl and the slime package.

Some time ago I used to have auto completion for Common Lisp keywords in emacs such that - while typing - it suggested a word via a greyed out completion (TAB for acceptance) or via drop down or both. (I can't remember exactly.)

I'm struggling to get this working again.

At https://github.com/purcell/ac-slime it is suggested to first install auto-complete but when I type package-list-packages there is no such package. (But there are plenty named auto-complete-* ).

(I set up Melpa with:

(require 'package)
(add-to-list 'package-archives
    '("melpa" . "http://melpa.org/packages/")))

The provided link http://cx4a.org/software/auto-complete/ is dead as well.
Mx install-package [RET] auto-complete [RET] also fails. Emacs says: [No match]

So my question is:
If there is no auto-complete package anymore, what is a good way to set up Common Lisp auto completion in emacs in the way mentioned above (greyed out word or dropdown)?


The current home-page for auto-complete is https://github.com/auto-complete/auto-complete

Installing it should be enough to allow you to use ac-slime (there is also a completion version using company).


Here is how I got it to work.

  • Download the .ZIP archive with repository here.

  • Unzip

  • Run Mx package-install-file

  • On the prompt, specify the path to the downloaded repository and the file named auto-complete.el .

  • Make sure that installation returns something along the lines of "Successful"

  • Add this line to your Emacs initialization file ( .emacs ): (ac-config-default)

  • To auto-complete in SLIME, follow similar step to install ac-slime (requires SLIME and Auto-complete)

  • PS There is another package called company (stands for Complete Anything), which is quite good as an alternative. I am trying it out now. Getting it to work was very simple.

    链接地址: http://www.djcxy.com/p/66228.html

    上一篇: 属性没有保存?

    下一篇: emacs中的Common Lisp自动完成