You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+28Lines changed: 28 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,3 +43,31 @@ or by adding this bit of Emacs Lisp code to your Emacs initialization file(`.ema
43
43
If the installation doesn't work try refreshing the package list:
44
44
45
45
<kbd>M-x package-refresh-contents [RET]</kbd>
46
+
47
+
## Usage
48
+
49
+
First you have to install javap-mode because it will be used to display JVM-bytecode.
50
+
51
+
Next. Since nrepl-decompile depends on nrepl, it has to be installed and running. Start nrepl session like this:
52
+
53
+
<kbd>M-x nrepl-jack-in [RET]</kbd>
54
+
55
+
Let's say, we've got the following namespace in the Clojure project: myns.core. Compile it, pressing in its buffer:
56
+
57
+
<kbd>C-c C-k</kbd>
58
+
59
+
Switch to this namespace in the nrepl buffer.
60
+
61
+
```lisp
62
+
(in-ns 'myns.core)
63
+
```
64
+
65
+
Now you may decompile any function in the current namespace using command "nrepl-decompile-func". For instance, if you have function myns.core/main, then you may decompile it like this:
66
+
67
+
<kbd>M-x nrepl-decompile-func [RET] main [RET]</kbd>
68
+
69
+
If you want to decompile a function from the other namespaces, you may use command "nrepl-decompile-ns-func". For example, decompiling function myotherns.core/other-main would look like this:
0 commit comments