Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Add nrepl hook to load nrepl-ritz in README

  • Loading branch information...
commit fcc3b74104c3aa51509209edc44a574aa5db340d 1 parent a10d3ec
@hugoduncan hugoduncan authored
Showing with 13 additions and 5 deletions.
  1. +13 −5 nrepl/
18 nrepl/
@@ -10,18 +10,17 @@ Add this to your `~/.lein/profiles.clj` file (requires lein version 2):
{:plugins [[lein-ritz "0.6.0"]]
- :dependencies [[ritz/ritz-nrepl-middleware "0.6.0"]
- [ritz/ritz-debugger "0.6.0"]
- [ritz/ritz-repl-utils "0.6.0"]]
+ :dependencies [[ritz/ritz-nrepl-middleware "0.6.0"]]
:repl-options {:nrepl-middleware
:hooks [ritz.add-sources]}}
-Add this to your `~/.emacs.d/init.el` file:
+Add this to your `~/.emacs.d/init.el` file, in order to install the emacs
(require 'package)
(add-to-list 'package-archives
'("marmalade" . ""))
@@ -36,6 +35,15 @@ Add this to your `~/.emacs.d/init.el` file:
(package-install p)))
+Add this to your `~/.emacs.d/init.el` file, in order to enable nrepl-ritz
+functionality in your nrepl connected clojure buffers:
+(add-hook 'nrepl-interaction-mode-hook 'my-nrepl-mode-setup)
+(defun my-nrepl-mode-setup ()
+ (require 'nrepl-ritz))
If you are using a SNAPSHOT version of
ritz-nrepl, you probably will need to install nrepl-ritz.el from
[melpa]( instead.
Please sign in to comment.
Something went wrong with that request. Please try again.