Improve set-repl-handler!'s docstring
This commit is contained in:
parent
9584dd6005
commit
104e01f588
1 changed files with 7 additions and 2 deletions
|
@ -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)))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue