Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
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/README.md
View
18 nrepl/README.md
@@ -10,18 +10,17 @@ Add this to your `~/.lein/profiles.clj` file (requires lein version 2):
```clj
{:user
{: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
[ritz.nrepl.middleware.javadoc/wrap-javadoc
ritz.nrepl.middleware.simple-complete/wrap-simple-complete]}
: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
+packages:
-```clj
+```cl
(require 'package)
(add-to-list 'package-archives
'("marmalade" . "http://marmalade-repo.org/packages/"))
@@ -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:
+
+```cl
+(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](http://melpa.milkbox.net/packages/) instead.
Please sign in to comment.
Something went wrong with that request. Please try again.