tvl-depot/init/lisp-setup.el
Vincent Ambo 536bdb40f3 fix(lisp): Don't set any Sly-mrepl hook settings
For some reason the Sly-mrepl hooks aren't available until a REPL has
actually been launched once. There doesn't seem to be a library that I
can require to fix it, either, so until I have time to figure it out
it stays commented out.
2018-02-04 21:17:32 +01:00

20 lines
503 B
EmacsLisp

;; lisp-settings.el - settings for various Lisp dialects
;; -*- lexical-binding: t; -*-
(require 'sly)
;; All the lisps:
(add-to-list 'lisp-mode-hook #'company-mode)
(add-to-list 'lisp-mode-hook #'paredit-mode)
(add-to-list 'lisp-mode-hook #'adjust-parens-mode)
(define-key lisp-mode-map (kbd "TAB")
#'company-indent-or-complete-common)
;; Common Lisp:
(setq inferior-lisp-program (concat (nix-store-path "sbcl") "/bin/sbcl"))
(add-to-list 'company-backends 'sly-company)
(provide 'lisp-setup)