Minor refactoring and reformatting

This commit is contained in:
Henrik Lissner 2019-10-08 17:40:39 -04:00
parent 9857b3d481
commit 3181933ed1
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 10 additions and 10 deletions

View file

@ -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
"n" #'cider-repl-set-ns
"q" #'cider-quit
"r" #'cider-ns-refresh
"R" #'cider-restart
"c" #'cider-repl-clear-buffer))
"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

View file

@ -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)))