about summary refs log tree commit diff
path: root/init-bindings.el
diff options
context:
space:
mode:
Diffstat (limited to 'init-bindings.el')
-rw-r--r--init-bindings.el13
1 files changed, 13 insertions, 0 deletions
diff --git a/init-bindings.el b/init-bindings.el
index 24517fd36c48..88b8a6596bcd 100644
--- a/init-bindings.el
+++ b/init-bindings.el
@@ -54,4 +54,17 @@
 ;; Create new frame
 (define-key global-map (kbd "C-x C-n") 'make-frame-command)
 
+;; Cider/nrepl stuff
+;; I want history up/down without modifiers
+(define-key cider-repl-mode-map (kbd "<up>") 'cider-backward-input)
+(define-key cider-repl-mode-map (kbd "<down>") 'cider-forward-input)
+(define-key cider-repl-mode-map (kbd "C-<up>") 'previous-line)
+(define-key cider-repl-mode-map (kbd "C-<down>") 'next-line)
+
+;; ... and ac-cider with C-c C-d
+(define-key cider-repl-mode-map (kbd "C-c C-d") 'ac-nrepl-popup-doc)
+(define-key cider-mode-map (kbd "C-c C-d") 'ac-nrepl-popup-doc)
+(define-key cider-mode-map (kbd "C-c D") 'cider-doc)
+
+
 (provide 'init-bindings)