Hi crafters,
Currently, I do something like
(advice-add #'geiser-eval-last-sexp
:after
'(lambda (&rest args) (pulse-momentary-highlight-one-line (point))))
in $HOME/.emacs.d/init.el
to highlight the current line when geiser-eval-last-sexp
is executed successfully. However, I’d like it to highlight the whole sexp being evaluated instead.
I think pulse-momentary-highlight-region
can be used instead of pulse-momentary-highlight-one-line
, but the tricky part is to locate the beginning and end of the sexp/region being evaluated which is going to depend on what geiser-eval-*
function I run; geiser-eval-definition
and geiser-eval-last-sexp
to name a few. Any clue?