about summary refs log tree commit diff
path: root/init-modes.el
diff options
context:
space:
mode:
Diffstat (limited to 'init-modes.el')
-rw-r--r--init-modes.el11
1 files changed, 10 insertions, 1 deletions
diff --git a/init-modes.el b/init-modes.el
index 1664de11f679..7a66bb2a6a46 100644
--- a/init-modes.el
+++ b/init-modes.el
@@ -24,8 +24,14 @@
 
 ;; Configure nrepl (Clojure REPL) and clojure-mode
 
+(defun nrepl-mode-setup ()
+  "Activates paredit, rainbow delimiters and ac-nrepl"
+  (ac-nrepl-setup)
+  (rainbow-delimiters-mode)
+  (paredit-mode))
+
 ;; Use ac-nrepl for completion
-(add-hook 'nrepl-mode-hook 'ac-nrepl-setup)
+(add-hook 'nrepl-mode-hook 'nrepl-mode-setup)
 (add-hook 'nrepl-interaction-mode-hook 'ac-nrepl-setup)
 
 ;; I want history up/down without modifiers
@@ -33,8 +39,11 @@
 (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-mode-map (kbd "C-c C-d") 'ac-nrepl-popup-doc)
 
 (define-key nrepl-interaction-mode-map (kbd "C-c C-d") 'ac-nrepl-popup-doc)
+(define-key nrepl-interaction-mode-map (kbd "C-c D") 'nrepl-doc)
+
 
 (eval-after-load "auto-complete"
    '(add-to-list 'ac-modes 'nrepl-mode))