Ruby auto-completion for Emacs
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib/solargraph_sample
.gitignore
.solargraph.yml
Gemfile
Gemfile.lock
README.md
ac-solargraph.el
emacs-solargraph-sample.gemspec add sample to test solargraph Jan 12, 2019
plan.sh
plan.sh.lock
solargraph.el

README.md

emacs-solargraph

Ruby setup

install solargraph via:

gem install solargraph

or add 'solargraph' in you Gemfile.

start solargraph server:

solargraph server

Emacs setup

Clone this repository somewhere and add this directory to your load-path.

basic setup:

(require 'solargraph)
(define-key ruby-mode-map (kbd "M-i") 'solargraph:complete)

Autocomplete setup

(require 'ac-solargraph)
(define-key ruby-mode-map (kbd "M-i") 'ac-solargraph:complete)

Solargraph project: https://github.com/castwide/solargraph