When I define a function in Emacs Lisp mode, you can evaluate it with moving the pointer to the
last parenthese of a function, and do C-xC-e. Aka calling eval-last-sexp
.
I thought this is somewhat a cumbersome. So I bound the key C-e to
eval-defun
. So every time you define a new setq
definition or a function,
you can evaluate it with eval-defun
without the need to move your pointer to
the latest parenthese first.
Now I'm trying Clojure in pair with CIDER. I noticed you need to move to the
latest parenthese and then call cider-eval-last-sexp
. I would like to eval the
current function/whatever where my cursor is, where the pointer is.
But I couldn't find any Clojure/Cider alternative for ELisp's eval-defun
. Any suggestion for a function would be appreciated.