Giter Site home page Giter Site logo

ac-slime's Introduction

Melpa Status Melpa Stable Status

Slime completion source for Emacs auto-complete package

This plugin provides a completion source for the popular Emacs interactive auto-completion framework auto-complete.

Where slime provides it, pop-up documentation for completed symbols will be displayed.

Screenshot

ac-slime screenshot

Installation

First, ensure auto-complete and slime are installed: I recommend using packages from Marmalade or Melpa. cl-lib is also required -- it's built into recent Emacs versions, and a backport package is available in GNU ELPA for users of older Emacs versions.

You'll need both auto-complete and slime to be enabled and working, so please consult the corresponding documentation is you have any trouble with this.

Next, install ac-slime. If you choose not to use the convenient package in Melpa and Marmalade, you'll need to add the directory containing ac-slime.el to your load-path, and then (require 'ac-slime).

ac-slime provides a couple of slime-specific completion sources, so auto-complete needs to be told to use them when slime-mode is active. To do this, put the following code in your emacs init file to

 (add-hook 'slime-mode-hook 'set-up-slime-ac)
 (add-hook 'slime-repl-mode-hook 'set-up-slime-ac)
 (eval-after-load "auto-complete"
   '(add-to-list 'ac-modes 'slime-repl-mode))

Usage

ac-slime should now automatically be enabled when you visit a buffer in which slime-mode is active and auto-complete is enabled. (The symbols "Slime" and "AC" should appear in the modeline.)

Simply trigger auto-completion, and completion candidates supplied by slime should be displayed, with the symbol l on the right hand side of the completion pop-up. After a short delay, popup documentation for the completed symbol should also be displayed.

More

ac-slime supports fuzzy completion -- see the comments in ac-slime.el for details. Note that to use fuzzy completion, you must install and require slime-fuzzy.el, which comes with the full Slime distro, but not the packaged version in Marmalade.


Steve Purcell's blog // @sanityinc on Twitter

ac-slime's People

Contributors

joaotavora avatar purcell avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.