forked from purcell/emacs.d
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit-sly.el
36 lines (25 loc) · 989 Bytes
/
init-sly.el
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
33
34
35
36
;;; init-sly.el --- Sly support for Common Lisp -*- lexical-binding: t -*-
;;; Commentary:
;;; Code:
(require-package 'sly)
(require-package 'sly-asdf)
(require-package 'sly-macrostep)
(require-package 'sly-repl-ansi-color)
;;; Lisp buffers
(with-eval-after-load 'sly
(setq sly-protocol-version 'ignore)
(setq sly-net-coding-system 'utf-8-unix)
(let ((features '(sly-fancy)))
;; (when (require 'sly-company nil t)
;; (push 'sly-company features))
(sly-setup features)))
;;; REPL
(with-eval-after-load 'sly-repl
;; Stop SLY's REPL from grabbing DEL, which is annoying when backspacing over a '('
(with-eval-after-load 'paredit
(define-key sly-repl-mode-map (read-kbd-macro paredit-backward-delete-key) nil))
;; Bind TAB to `indent-for-tab-command', as in regular Sly buffers.
(define-key sly-repl-mode-map (kbd "TAB") 'indent-for-tab-command)
(add-hook 'sly-repl-mode-hook 'sanityinc/lisp-setup))
(provide 'init-sly)
;;; init-sly.el ends here