forked from syl20bnr/spacemacs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
packages.el
46 lines (37 loc) · 1.52 KB
/
packages.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
37
38
39
40
41
42
43
44
45
46
(defconst lispy-packages
'(lispy
(evil-lispy :location (recipe :fetcher github
:repo "sp3ctum/evil-lispy"
:branch "master"))))
(defun lispy/init-lispy ()
(use-package lispy
:defer t
:config (spacemacs|diminish lispy-mode "" "")))
(defun lispy/init-evil-lispy ()
(use-package evil-lispy
:defer t
:init (progn (add-hook 'emacs-lisp-mode-hook #'evil-lispy-mode)
(add-hook 'clojure-mode-hook #'evil-lispy-mode)
(evil-lispy-layer-configure-colorization))
:commands (evil-lispy-mode)
:config (progn
(spacemacs|diminish evil-lispy-mode " Ⓛ" " L")
(when (configuration-layer/package-usedp 'cider)
;; todo better mechanism of loading cider
(require 'cider)
;; show eval results in a cider overlay, next to point
(add-to-list 'lispy-compat 'cider)
(setq lispy-eval-display-style 'overlay)))))
;; todo yanking marked stuff is broken
(defun evil-lispy-layer-configure-colorization ()
;; this will be displayed in the modeline
(let ((mode-color "light sea green"))
(defface spacemacs-lispy-face
`((t :inherit 'mode-line
:background ,mode-color))
"lispy state face."
:group 'spacemacs)
(setq evil-lispy-state-cursor '(mode-color box))
(setq evil-lispy-state-cursor
(list (when dotspacemacs-colorize-cursor-according-to-state mode-color)
'box))))