feat(emacs-lisp): add +emacs-lisp/change-working-buffer command

This changes what buffer `+emacs-lisp-eval` evaluates elisp in (useful
for the :tool eval module's commands, like `+eval/buffer` and
`+eval/region`, or the Evil operators on gr/gR).

Creates a scratch buffer/org src block alternative to ielm.
This commit is contained in:
Henrik Lissner
2025-04-13 04:39:54 -04:00
parent e096e7d79e
commit dddc01982b
2 changed files with 39 additions and 16 deletions

View File

@ -137,6 +137,7 @@ See `+emacs-lisp-non-package-mode' for details.")
(map! :localleader
:map (emacs-lisp-mode-map lisp-interaction-mode-map)
:desc "Set working buffer" "b" #'+emacs-lisp/change-working-buffer
:desc "Expand macro" "m" #'macrostep-expand
(:prefix ("d" . "debug")
"f" #'+emacs-lisp/edebug-instrument-defun-on