128bb8c417
If this mode is not required in time it will cause Lisp mode setup hooks to fail.
21 lines
528 B
EmacsLisp
21 lines
528 B
EmacsLisp
;; 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)
|