Minor fixes for nrepl-mode
This commit is contained in:
parent
25d348673b
commit
924e60005e
2 changed files with 12 additions and 2 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue