2017-11-22 23:55:01 +01:00
|
|
|
;; lisp-settings.el - settings for various Lisp dialects
|
|
|
|
;; -*- lexical-binding: t; -*-
|
|
|
|
|
2018-02-05 23:04:09 +01:00
|
|
|
(require 'adjust-parens)
|
2018-02-04 21:17:32 +01:00
|
|
|
(require 'sly)
|
|
|
|
|
2017-11-22 23:55:01 +01:00
|
|
|
;; All the lisps:
|
|
|
|
|
2018-01-20 16:57:10 +01:00
|
|
|
(add-to-list 'lisp-mode-hook #'company-mode)
|
2017-11-22 23:55:01 +01:00
|
|
|
(add-to-list 'lisp-mode-hook #'paredit-mode)
|
2018-02-04 13:42:42 +01:00
|
|
|
(add-to-list 'lisp-mode-hook #'adjust-parens-mode)
|
2017-11-22 23:55:01 +01:00
|
|
|
|
2018-01-20 16:57:10 +01:00
|
|
|
(define-key lisp-mode-map (kbd "TAB")
|
|
|
|
#'company-indent-or-complete-common)
|
|
|
|
|
2017-11-22 23:55:01 +01:00
|
|
|
;; Common Lisp:
|
|
|
|
(setq inferior-lisp-program (concat (nix-store-path "sbcl") "/bin/sbcl"))
|
2018-01-20 16:57:10 +01:00
|
|
|
|
|
|
|
(add-to-list 'company-backends 'sly-company)
|
2017-11-24 16:45:12 +01:00
|
|
|
|
|
|
|
(provide 'lisp-setup)
|