diff --git a/modules/lang/clojure/config.el b/modules/lang/clojure/config.el index 2fb475e21..1f28e3290 100644 --- a/modules/lang/clojure/config.el +++ b/modules/lang/clojure/config.el @@ -5,9 +5,8 @@ (use-package! cider - ;; NOTE: if you don't have an org directory set (the dir doesn't exist), - ;; cider jack in won't work. - :commands cider-jack-in cider-jack-in-clojurescript + ;; NOTE: if you don't have an org directory set (the dir doesn't exist), cider + ;; jack in won't work. :hook (clojure-mode-local-vars . cider-mode) :init (after! clojure-mode @@ -121,11 +120,11 @@ :i [S-return] #'cider-repl-newline-and-indent :i [M-return] #'cider-repl-return (:localleader - ("n" #'cider-repl-set-ns - "q" #'cider-quit - "r" #'cider-ns-refresh - "R" #'cider-restart - "c" #'cider-repl-clear-buffer)) + "n" #'cider-repl-set-ns + "q" #'cider-quit + "r" #'cider-ns-refresh + "R" #'cider-restart + "c" #'cider-repl-clear-buffer) :map cider-repl-history-mode-map :i [return] #'cider-repl-history-insert-and-quit :i "q" #'cider-repl-history-quit diff --git a/modules/tools/eval/autoload/settings.el b/modules/tools/eval/autoload/settings.el index f9f7e71f2..3ad1aa7d7 100644 --- a/modules/tools/eval/autoload/settings.el +++ b/modules/tools/eval/autoload/settings.el @@ -3,7 +3,6 @@ ;; ;; REPLs -;;;###autoload (defvar +eval-repls nil "An alist mapping major modes to plists that describe REPLs. Used by `+eval/open-repl-other-window' and filled with the `:repl' setting.") @@ -16,7 +15,9 @@ 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." +command that will be called interactively. COMMANDS must return either the repl +buffer or a function that takes no arguments and returns the repl buffer." + (declare (indent defun)) (dolist (mode (doom-enlist modes)) (setf (alist-get mode +eval-repls) command)))