about summary refs log tree commit diff
path: root/init-bindings.el
diff options
context:
space:
mode:
authorVincent Ambo <vincent@spotify.com>2013-10-19T18·04+0200
committerVincent Ambo <vincent@spotify.com>2013-10-19T18·04+0200
commit6aba1cbda92d082f087c5308fb03c678f24f7d14 (patch)
tree201d31de8d77e12c37520fac19bfb4baaabae82a /init-bindings.el
parent47f5ddebc0486d8d8c194ae3561d21e6697daf82 (diff)
Fix settings for nrepl.el -> cider
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)