blob: e4174b587b220ff9249e35125a066503be99a63d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
;; lisp-settings.el - settings for various Lisp dialects
;; -*- lexical-binding: t; -*-
;; 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:
(setq inferior-lisp-program (concat (nix-store-path "sbcl") "/bin/sbcl"))
(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)
|