branch: elpa/inf-clojure
commit fbfcd57f9a273ddd6c7c7d129de18bb124c23c02
Author: Bozhidar Batsov <[email protected]>
Commit: Bozhidar Batsov <[email protected]>

    [Fix #192] Document load, reload and set-ns commands
    
    Add load-file, reload, set-ns and var-meta to the quick reference
    in the README, and mention load-file, reload and set-ns in the
    inf-clojure-mode docstring.
---
 README.md      | 4 ++++
 inf-clojure.el | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/README.md b/README.md
index de94ada42b..ffa4a5d8eb 100644
--- a/README.md
+++ b/README.md
@@ -141,9 +141,13 @@ Inf-clojure aims to be very simple and offer tooling that 
the REPL
 itself exposes. A few commands are:
 
 - eval last sexp (`C-x C-e`)
+- load file (`C-c C-l`)
+- reload namespace (`C-c M-r`, with `M--` prefix for `:reload-all`)
+- set REPL namespace (`C-c M-n`)
 - show arglists for function (`C-c C-a`)
 - show var documentation (`C-c C-v`)
 - show source (`C-c C-s`)
+- show var metadata (`C-c C-S-m`)
 - insert top level form into REPL (`C-c C-j d`)
 
 For a list of all available commands in `inf-clojure-mode` (a.k.a. the
diff --git a/inf-clojure.el b/inf-clojure.el
index 2cc6a06364..82a06f7b5a 100644
--- a/inf-clojure.el
+++ b/inf-clojure.el
@@ -612,6 +612,10 @@ Clojure source.
     process buffer.
     `inf-clojure-eval-defun' sends the current defun to the Clojure process.
     `inf-clojure-eval-region' sends the current region to the Clojure process.
+    `inf-clojure-load-file' loads a Clojure file into the REPL.
+    `inf-clojure-reload' reloads the current namespace (with `M--' prefix
+    for :reload-all).
+    `inf-clojure-set-ns' sets the REPL namespace to the ns of the current 
buffer.
 
     Prefixing the inf-clojure-eval/defun/region commands with
     a \\[universal-argument] causes a switch to the Clojure process buffer 
after

Reply via email to