summaryrefslogtreecommitdiff
path: root/lisp/programming/common-lisp.el
blob: b3aa00b1cba342ff959de501a8b825a3b90617ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
;;; common-lisp.el -*- lexical-binding: t; -*-
;;;
;;; Author:  Jakob L. Kreuze <zerodaysfordays@sdf.org>
;;; URL:     https://git.sr.ht/~jakob/.emacs.d/
;;;
;;; Configuration of a development environment for the Common Lisp programming
;;; language.
;;;

;; SLIME is my preferred REPL for working with Common Lisp,

(use-package slime
  ;; and SBCL is my preferred implementation.
  :config
  (setq inferior-lisp-program "sbcl")

  ;; Enable Smartparens and Company in the SLIME REPL.
  :hook
  (slime-repl-mode . (lambda ()
                       (smartparens-mode +1)
                       (company-mode +1)))

  ;; Enable the SLIME backend for company.
  :config
  (setq slime-contribs '(slime-fancy slime-company)))

(use-package slime-company
  :after company
  :hook
  (lisp-mode . (lambda () (company-mode +1)))
  :config
  (add-to-list 'company-backends 'company-slime))

© 2015 - 2026 Jakob L. Kreuze