docs(eval): explain DWIM behavior

This commit is contained in:
Ethan Leba 2021-12-18 10:37:15 -05:00
parent fea561f678
commit aebd4b0c99

View file

@ -114,7 +114,10 @@
;;;###autoload ;;;###autoload
(defun +eval/buffer-or-region () (defun +eval/buffer-or-region ()
"Evaluate the whole buffer." "Evaluate the region if it's active, otherwise evaluate the whole buffer.
If a REPL is open the code will be evaluated in it, otherwise a quickrun
runner will be used."
(interactive) (interactive)
(call-interactively (call-interactively
(if (use-region-p) (if (use-region-p)