GitHub - anwyn/slime-company: Company-mode completion backend for Slime.
source link: https://github.com/anwyn/slime-company
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
README.md
slime-company
A company-mode completion backend for Slime, "The Superior Lisp Interaction Mode for Emacs".
Setup
The recommended way to install slime-company
is via
MELPA. If not using MELPA, put
this file somewhere into your load-path (or just into slime-path/contribs).
To activate the contrib add it to the slime-setup
call in your .emacs
(slime-setup '(slime-fancy slime-company))
You may also want to M-x customize-group slime-company
to select the
completion method (use fuzzy' if you like to complete package names), the major modes where
slime-company` is automatically activated, what
do do after a successful completion and how to display the argument
list of a function.
These customization variables can also be set manually. An example with `use-package' looks like this:
(use-package slime-company
:after (slime company)
:config (setq slime-company-completion 'fuzzy
slime-company-after-completion 'slime-company-just-one-space))
The following bindings for company-active-map
will add the usual
navigation keys to the completion menu:
(define-key company-active-map (kbd "\C-n") 'company-select-next) (define-key company-active-map (kbd "\C-p") 'company-select-previous) (define-key company-active-map (kbd "\C-d") 'company-show-doc-buffer) (define-key company-active-map (kbd "M-.") 'company-show-location)
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK