about summary refs log tree commit diff
path: root/init-modes.el
diff options
context:
space:
mode:
authorvincent@spotify.com <vincent@Vincents-MacBook-Pro.local>2013-08-27T22·56+0200
committervincent@spotify.com <vincent@Vincents-MacBook-Pro.local>2013-08-27T22·56+0200
commita7e4801f3b5c42ad131b4427c75cc021c7ef418a (patch)
tree604e1ca8d9d8ac2ed0e96a3eb1801075ae64ca65 /init-modes.el
parent867a87387c8232c48170c045d13a556a1d68fe3a (diff)
Loading mail settings if they exist \nProper up/down history movement in nrepl
Diffstat (limited to 'init-modes.el')
-rw-r--r--init-modes.el11
1 files changed, 9 insertions, 2 deletions
diff --git a/init-modes.el b/init-modes.el
index d24ee7b0c8f6..1664de11f679 100644
--- a/init-modes.el
+++ b/init-modes.el
@@ -27,11 +27,18 @@
 ;; Use ac-nrepl for completion
 (add-hook 'nrepl-mode-hook 'ac-nrepl-setup)
 (add-hook 'nrepl-interaction-mode-hook 'ac-nrepl-setup)
-(eval-after-load "auto-complete"
-   '(add-to-list 'ac-modes 'nrepl-mode))
+
+;; I want history up/down without modifiers
+(define-key nrepl-mode-map (kbd "<up>") 'nrepl-backward-input)
+(define-key nrepl-mode-map (kbd "<down>") 'nrepl-forward-input)
+(define-key nrepl-mode-map (kbd "C-<up>") 'previous-line)
+(define-key nrepl-mode-map (kbd "C-<down>") 'next-line)
 
 (define-key nrepl-interaction-mode-map (kbd "C-c C-d") 'ac-nrepl-popup-doc)
 
+(eval-after-load "auto-complete"
+   '(add-to-list 'ac-modes 'nrepl-mode))
+
 ;; Paredit in clojure
 (add-hook 'clojure-mode-hook 'paredit-mode)