diff options
-rw-r--r-- | .emacs.d/lisp/init-emacs-lisp.el | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/.emacs.d/lisp/init-emacs-lisp.el b/.emacs.d/lisp/init-emacs-lisp.el index e32ee31..0cf1f44 100644 --- a/.emacs.d/lisp/init-emacs-lisp.el +++ b/.emacs.d/lisp/init-emacs-lisp.el @@ -65,6 +65,16 @@ Start `ielm' if it's not already running." (use-package eros + :config + ;; https://xenodium.com/inline-previous-result-and-why-you-should-edebug/ + (defun adviced:edebug-previous-result (_ &rest r) + "Adviced `edebug-previous-result'." + (eros--make-result-overlay edebug-previous-result + :where (point) + :duration eros-eval-result-duration)) + (advice-add #'edebug-previous-result + :around + #'adviced:edebug-previous-result) :hook (emacs-lisp-mode . eros-mode)) |