Minor refactoring and reformatting
This commit is contained in:
parent
9857b3d481
commit
3181933ed1
2 changed files with 10 additions and 10 deletions
|
@ -5,9 +5,8 @@
|
||||||
|
|
||||||
|
|
||||||
(use-package! cider
|
(use-package! cider
|
||||||
;; NOTE: if you don't have an org directory set (the dir doesn't exist),
|
;; NOTE: if you don't have an org directory set (the dir doesn't exist), cider
|
||||||
;; cider jack in won't work.
|
;; jack in won't work.
|
||||||
:commands cider-jack-in cider-jack-in-clojurescript
|
|
||||||
:hook (clojure-mode-local-vars . cider-mode)
|
:hook (clojure-mode-local-vars . cider-mode)
|
||||||
:init
|
:init
|
||||||
(after! clojure-mode
|
(after! clojure-mode
|
||||||
|
@ -121,11 +120,11 @@
|
||||||
:i [S-return] #'cider-repl-newline-and-indent
|
:i [S-return] #'cider-repl-newline-and-indent
|
||||||
:i [M-return] #'cider-repl-return
|
:i [M-return] #'cider-repl-return
|
||||||
(:localleader
|
(:localleader
|
||||||
("n" #'cider-repl-set-ns
|
"n" #'cider-repl-set-ns
|
||||||
"q" #'cider-quit
|
"q" #'cider-quit
|
||||||
"r" #'cider-ns-refresh
|
"r" #'cider-ns-refresh
|
||||||
"R" #'cider-restart
|
"R" #'cider-restart
|
||||||
"c" #'cider-repl-clear-buffer))
|
"c" #'cider-repl-clear-buffer)
|
||||||
:map cider-repl-history-mode-map
|
:map cider-repl-history-mode-map
|
||||||
:i [return] #'cider-repl-history-insert-and-quit
|
:i [return] #'cider-repl-history-insert-and-quit
|
||||||
:i "q" #'cider-repl-history-quit
|
:i "q" #'cider-repl-history-quit
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
;;
|
;;
|
||||||
;; REPLs
|
;; REPLs
|
||||||
|
|
||||||
;;;###autoload
|
|
||||||
(defvar +eval-repls nil
|
(defvar +eval-repls nil
|
||||||
"An alist mapping major modes to plists that describe REPLs. Used by
|
"An alist mapping major modes to plists that describe REPLs. Used by
|
||||||
`+eval/open-repl-other-window' and filled with the `:repl' setting.")
|
`+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.
|
function that creates and returns the REPL buffer.
|
||||||
|
|
||||||
COMMAND can either be a function that takes no arguments, or an interactive
|
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))
|
(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