Add :lang common-lisp

This commit is contained in:
Henrik Lissner 2018-06-13 20:10:20 +02:00
parent eb254afd51
commit 8889d5cc2b
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
4 changed files with 26 additions and 6 deletions

View 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))

View file

@ -0,0 +1,6 @@
;; -*- no-byte-compile: t; -*-
;;; lang/common-lisp/packages.el
(package! slime)
(when (featurep! :completion company)
(package! slime-company))

View file

@ -71,11 +71,6 @@
auto-compile-use-mode-line nil)
;; `slime'
(setq inferior-lisp-program "clisp")
(after! slime (require 'slime-fuzzy))
;; `macrostep'
(map! :after macrostep
:map macrostep-keymap

View file

@ -5,7 +5,6 @@
(package! highlight-quoted)
(package! macrostep)
(package! overseer)
(package! slime)
(when (featurep! :feature syntax-checker)
(package! flycheck-cask))