docs(eval): explain DWIM behavior
This commit is contained in:
parent
fea561f678
commit
aebd4b0c99
1 changed files with 4 additions and 1 deletions
|
@ -114,7 +114,10 @@
|
|||
|
||||
;;;###autoload
|
||||
(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)
|
||||
(call-interactively
|
||||
(if (use-region-p)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue