Improve set-repl-handler!'s docstring

This commit is contained in:
Henrik Lissner 2018-08-15 09:24:53 +02:00
parent 9584dd6005
commit 104e01f588
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -10,8 +10,13 @@
;;;###autodef
(defun set-repl-handler! (modes command)
"Define a REPL for MODES. MODES is either a single major mode symbol or a list
of them. COMMAND is a function that creates and returns the REPL buffer."
"Defines a REPL for MODES.
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))
(setf (alist-get mode +eval-repls) command)))