Cider: Remove with-eval-after-load

This commit is contained in:
James Nguyen 2017-12-24 11:22:46 -08:00
parent 713cd58883
commit 009abdd175
1 changed files with 43 additions and 47 deletions

View File

@ -55,59 +55,55 @@
"gf" 'cider-find-resource
"K" 'cider-doc)
(with-eval-after-load 'cider-repl
(evil-define-key '(normal visual) cider-repl-mode-map
"gz" 'cider-switch-to-last-clojure-buffer
"gd" 'cider-find-var
(kbd "C-t") 'cider-pop-back
"gr" 'cider-refresh
"gf" 'cider-find-resource
"K" 'cider-doc))
(evil-define-key '(normal visual) cider-repl-mode-map
"gz" 'cider-switch-to-last-clojure-buffer
"gd" 'cider-find-var
(kbd "C-t") 'cider-pop-back
"gr" 'cider-refresh
"gf" 'cider-find-resource
"K" 'cider-doc)
(with-eval-after-load 'cider-test
(evil-define-key 'normal cider-test-report-mode-map
(kbd "C-c ,") 'cider-test-commands-map
(kbd "C-c C-t") 'cider-test-commands-map
(kbd "M-p") 'cider-test-previous-result
(kbd "M-n") 'cider-test-next-result
(evil-define-key 'normal cider-test-report-mode-map
(kbd "C-c ,") 'cider-test-commands-map
(kbd "C-c C-t") 'cider-test-commands-map
(kbd "M-p") 'cider-test-previous-result
(kbd "M-n") 'cider-test-next-result
;; goto
"gd" 'cider-test-jump
;; goto
"gd" 'cider-test-jump
(kbd "<backtab>") 'cider-test-previous-result
(kbd "<tab>") 'cider-test-next-result
(kbd "<return>") 'cider-test-jump
"t" 'cider-test-jump
"d" 'cider-test-ediff
"e" 'cider-test-stacktrace
"f" 'cider-test-rerun-failed-tests
"n" 'cider-test-run-ns-tests
"L" 'cider-test-run-loaded-tests
"p" 'cider-test-run-project-tests
"gr" 'cider-test-run-test
"q" 'cider-popup-buffer-quit-function))
(kbd "<backtab>") 'cider-test-previous-result
(kbd "<tab>") 'cider-test-next-result
(kbd "<return>") 'cider-test-jump
"t" 'cider-test-jump
"d" 'cider-test-ediff
"e" 'cider-test-stacktrace
"f" 'cider-test-rerun-failed-tests
"n" 'cider-test-run-ns-tests
"L" 'cider-test-run-loaded-tests
"p" 'cider-test-run-project-tests
"gr" 'cider-test-run-test
"q" 'cider-popup-buffer-quit-function)
(with-eval-after-load 'cider-macroexpansion
(evil-define-key 'normal cider-macroexpansion-mode-map
;; quit
"q" 'cider-popup-buffer-quit-function
(evil-define-key 'normal cider-macroexpansion-mode-map
;; quit
"q" 'cider-popup-buffer-quit-function
"r" 'cider-macroexpand-again
"K" 'cider-doc ; Evil has `evil-lookup'.
"J" 'cider-javadoc
"." 'cider-find-var
"m" 'cider-macroexpand-1-inplace
"a" 'cider-macroexpand-all-inplace
"u" 'cider-macroexpand-undo
[remap undo] 'cider-macroexpand-undo))
"r" 'cider-macroexpand-again
"K" 'cider-doc ; Evil has `evil-lookup'.
"J" 'cider-javadoc
"." 'cider-find-var
"m" 'cider-macroexpand-1-inplace
"a" 'cider-macroexpand-all-inplace
"u" 'cider-macroexpand-undo
[remap undo] 'cider-macroexpand-undo)
(with-eval-after-load 'cider-client
(evil-define-key 'normal cider-connections-buffer-mode-map
"d" 'cider-connections-make-default
"c" 'cider-connection-browser
"x" 'cider-connections-close-connection
(kbd "<return>") 'cider-connections-goto-connection
"g?" 'describe-mode)))
(evil-define-key 'normal cider-connections-buffer-mode-map
"d" 'cider-connections-make-default
"c" 'cider-connection-browser
"x" 'cider-connections-close-connection
(kbd "<return>") 'cider-connections-goto-connection
"g?" 'describe-mode))
(provide 'evil-collection-cider)
;;; evil-collection-cider.el ends here