feat(lisp): Configure company-mode for Common Lisp

This commit is contained in:
Vincent Ambo 2018-01-20 16:57:10 +01:00
parent f3b9126fa2
commit 2dff64d9b4

View file

@ -3,11 +3,20 @@
;; All the lisps:
(add-to-list 'lisp-mode-hook #'company-mode)
(add-to-list 'lisp-mode-hook #'paredit-mode)
(define-key lisp-mode-map (kbd "TAB")
#'company-indent-or-complete-common)
;; Common Lisp:
(load (expand-file-name "~/quicklisp/slime-helper.el"))
(setq inferior-lisp-program (concat (nix-store-path "sbcl") "/bin/sbcl"))
(setq slime-contribs '(slime-fancy))
(add-to-list 'company-backends 'sly-company)
(add-to-list 'sly-mrepl-mode-hook #'paredit-mode)
(add-to-list 'sly-mrepl-mode-hook #'company-mode)
(define-key sly-mrepl-mode-map (kbd "TAB")
#'company-indent-or-complete-common)
(provide 'lisp-setup)