Add :lang common-lisp
This commit is contained in:
parent
eb254afd51
commit
8889d5cc2b
4 changed files with 26 additions and 6 deletions
20
modules/lang/common-lisp/config.el
Normal file
20
modules/lang/common-lisp/config.el
Normal file
|
@ -0,0 +1,20 @@
|
|||
;;; lang/common-lisp/config.el -*- lexical-binding: t; -*-
|
||||
|
||||
;; `slime'
|
||||
(setq slime-contribs '(slime-fancy))
|
||||
(after! slime
|
||||
(setq inferior-lisp-program (executable-find "sbcl")))
|
||||
|
||||
|
||||
(def-package! slime-company
|
||||
:when (featurep! :completion company)
|
||||
:commands slime-company
|
||||
:init
|
||||
(push 'slime-company slime-contribs)
|
||||
|
||||
;; Don't override the global `company-backends'!
|
||||
(defun +common-lisp|make-company-backends-local (&rest _)
|
||||
(make-variable-buffer-local 'company-backends))
|
||||
(advice-add #'slime-company-maybe-enable
|
||||
:before #'+common-lisp|make-company-backends-local))
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue