DrAtomic / company-gambit

company backend for gambit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

company-gambit

example

a backend for company gambit

Description

This is a very simple company backend for gambit, for emacs

It finds all the procedures in the gambit documentation and provides them to company.

why?

I'm doing it to learn a few things, company backends, regular expressions, lisp in general.

In addition gambit comes with a pretty nice gambit-mode, the only thing missing was autocomplete, hence this project.

"why don't you just use geiser?"

you should definitely just use geiser

Installation

straight package manager

straight is a package manager for emacs, its really handy. No git cloning required!

(use-package company-gambit
    :straight (company-gambit :type git :host github :repo "DrAtomic/company-gambit")
    :config
    (defun my-scheme-mode-hook ()
      (add-to-list 'company-backends 'company-gambit--backend))
    (add-hook 'scheme-mode-hook 'my-scheme-mode-hook))

git installation

cd ~/.emacs.d
git clone https://github.com/DrAtomic/company-gambit.git

go into your emacs config file and add

(use-package company-gambit
  :ensure nil
  :load-path "~/.emacs.d/company-gambit/"
  :config
  (defun my-scheme-mode-hook ()
    (add-to-list 'company-backends 'company-gambit--backend))

  (add-hook 'scheme-mode-hook 'my-scheme-mode-hook))

now start up a .scm file and you're good to go!

About

company backend for gambit


Languages

Language:Emacs Lisp 100.0%