about summary refs log tree commit diff
diff options
context:
space:
mode:
-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)