-
-
Save eslick/dcc11917981a117e81aa to your computer and use it in GitHub Desktop.
Default nrepl emacs configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require 'nrepl) | |
;; Configure nrepl.el | |
(setq nrepl-hide-special-buffers t) | |
(setq nrepl-popup-stacktraces-in-repl t) | |
(setq nrepl-history-file "~/.emacs.d/nrepl-history") | |
;; Some default eldoc facilities | |
(add-hook 'nrepl-connected-hook | |
(defun pnh-clojure-mode-eldoc-hook () | |
(add-hook 'clojure-mode-hook 'turn-on-eldoc-mode) | |
(add-hook 'nrepl-interaction-mode-hook 'nrepl-turn-on-eldoc-mode) | |
(nrepl-enable-on-existing-clojure-buffers))) | |
;; Repl mode hook | |
(add-hook 'nrepl-mode-hook 'subword-mode) | |
;; Auto completion for NREPL | |
(require 'ac-nrepl) | |
(eval-after-load "auto-complete" | |
'(add-to-list 'ac-modes 'nrepl-mode)) | |
(add-hook 'nrepl-mode-hook 'ac-nrepl-setup) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment