mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
docs(eval): explain DWIM behavior
This commit is contained in:
@ -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)
|
||||||
|
Reference in New Issue
Block a user