diff options
author | Vincent Ambo <vincent@spotify.com> | 2013-09-16T11·58+0200 |
---|---|---|
committer | Vincent Ambo <vincent@spotify.com> | 2013-09-16T11·58+0200 |
commit | 924e60005e10aba8ec16622998df642f14997807 (patch) | |
tree | b99d364e55ae7da4ab045829c8892a1db0ea7c20 /init-modes.el | |
parent | 25d348673bd6951e5e9f9235dbd4db311e1a0567 (diff) |
Minor fixes for nrepl-mode
Diffstat (limited to 'init-modes.el')
-rw-r--r-- | init-modes.el | 11 |
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)) |