From a7e4801f3b5c42ad131b4427c75cc021c7ef418a Mon Sep 17 00:00:00 2001 From: "vincent@spotify.com" Date: Wed, 28 Aug 2013 00:56:20 +0200 Subject: Loading mail settings if they exist \nProper up/down history movement in nrepl --- init-modes.el | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'init-modes.el') 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 "") 'nrepl-backward-input) +(define-key nrepl-mode-map (kbd "") 'nrepl-forward-input) +(define-key nrepl-mode-map (kbd "C-") 'previous-line) +(define-key nrepl-mode-map (kbd "C-") '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) -- cgit 1.4.1