feat(lisp): Configure company-mode for Common Lisp
This commit is contained in:
parent
f3b9126fa2
commit
2dff64d9b4
1 changed files with 11 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue