mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Improve set-repl-handler!'s docstring
This commit is contained in:
@ -10,8 +10,13 @@
|
|||||||
|
|
||||||
;;;###autodef
|
;;;###autodef
|
||||||
(defun set-repl-handler! (modes command)
|
(defun set-repl-handler! (modes command)
|
||||||
"Define a REPL for MODES. MODES is either a single major mode symbol or a list
|
"Defines a REPL for MODES.
|
||||||
of them. COMMAND is a function that creates and returns the REPL buffer."
|
|
||||||
|
MODES is either a single major mode symbol or a list of them. COMMAND is a
|
||||||
|
function that creates and returns the REPL buffer.
|
||||||
|
|
||||||
|
COMMAND can either be a function that takes no arguments, or an interactive
|
||||||
|
command that will be called interactively."
|
||||||
(dolist (mode (doom-enlist modes))
|
(dolist (mode (doom-enlist modes))
|
||||||
(setf (alist-get mode +eval-repls) command)))
|
(setf (alist-get mode +eval-repls) command)))
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user