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