about summary refs log tree commit diff
path: root/init
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@gmail.com>2018-01-20T15·57+0100
committerVincent Ambo <tazjin@gmail.com>2018-01-20T15·57+0100
commit2dff64d9b45c41572ecbab4a370656a246e220ad (patch)
treea70ccd0d9521b8354d855f72c32b5214a3d837a7 /init
parentf3b9126fa20c946325bad332ee2a48443feb4843 (diff)
feat(lisp): Configure company-mode for Common Lisp
Diffstat (limited to 'init')
-rw-r--r--init/lisp-setup.el13
1 files changed, 11 insertions, 2 deletions
diff --git a/init/lisp-setup.el b/init/lisp-setup.el
index 816d34b37ed3..e4174b587b22 100644
--- a/init/lisp-setup.el
+++ b/init/lisp-setup.el
@@ -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)