mirror of
https://github.com/pestctrl/emacs-config.git
synced 2026-06-14 12:21:20 +00:00
Using my fork of cider until my changes get merged
Also, this reverts commit 39088a6392.
This commit is contained in:
parent
d34642ed6d
commit
a03225a743
3 changed files with 13 additions and 6 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
|
@ -79,3 +79,6 @@
|
|||
[submodule "lisp/ti-config/libraries"]
|
||||
path = lisp/ti-config/libraries
|
||||
url = git@github.com:pestctrl/work-emacs
|
||||
[submodule "submodule/cider"]
|
||||
path = submodule/cider
|
||||
url = git@github.com:pestctrl/cider
|
||||
|
|
|
|||
|
|
@ -463,21 +463,24 @@
|
|||
(define-key emacs-lisp-mode-map (kbd "C-c C-e") 'my/eval-and-replace)
|
||||
|
||||
;; Use cider's eval expression
|
||||
(use-package cider)
|
||||
;; (use-package cider)
|
||||
(add-to-list 'load-path
|
||||
(expand-file-name "submodule/cider"
|
||||
user-emacs-directory))
|
||||
(autoload 'cider--make-result-overlay "cider-overlays")
|
||||
|
||||
(defun endless/eval-overlay (value point)
|
||||
(let ((comment-start ";;"))
|
||||
(cider--make-result-overlay (format "%S" value)
|
||||
:where point
|
||||
:duration 'command)))
|
||||
:duration 'command))
|
||||
value)
|
||||
|
||||
(advice-add 'eval-region :around
|
||||
(lambda (f beg end &rest r)
|
||||
(let ((res (apply f beg end r)))
|
||||
(when (called-interactively-p)
|
||||
(endless/eval-overlay res end))
|
||||
res)))
|
||||
(endless/eval-overlay
|
||||
(apply f beg end r)
|
||||
end)))
|
||||
|
||||
(advice-add 'eval-last-sexp :filter-return
|
||||
(lambda (r)
|
||||
|
|
|
|||
1
submodule/cider
Submodule
1
submodule/cider
Submodule
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 9757a154469b7175c8edc4cd3698802bc2db1099
|
||||
Loading…
Reference in a new issue