tvl-depot/init/lisp-setup.el

22 lines
528 B
EmacsLisp
Raw Normal View History

;; lisp-settings.el - settings for various Lisp dialects
;; -*- lexical-binding: t; -*-
(require 'adjust-parens)
(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)