Skip to content
This repository was archived by the owner on Sep 22, 2020. It is now read-only.

Commit 12f4935

Browse files
committed
Update rebl, remote-development, vim
1 parent e81ca1d commit 12f4935

File tree

3 files changed

+17
-23
lines changed

3 files changed

+17
-23
lines changed

docs/rebl.md

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44

55
## Clojure CLI
66

7-
1. Add your aliases to your deps.edn file. Use the deps.edn file in the `~/.clojure` directory to enable alias reuse across multiple projects.
8-
9-
* Add the REBL and nREBL aliases to your deps.edn file. Below is the configuration for REBL on openjdk 12
7+
Add the following aliases to your deps.edn file. Use the deps.edn file in the `~/.clojure` directory to enable alias reuse across multiple projects. This is the configuration for REBL on openjdk 12. Check out the [REBL github page](https://github.com/cognitect-labs/REBL-distro) for more info.
108

119
```clojure
1210
;; REBL Base
@@ -19,6 +17,7 @@
1917
com.cognitect/rebl
2018
;; adjust to match your install location
2119
{:local/root "/Users/ozimos/REBL/latest/REBL.jar"}}}
20+
2221
;; REBL 12
2322
:rebl-12
2423
{:extra-deps {org.openjfx/javafx-fxml {:mvn/version "12.0.1"}
@@ -31,15 +30,11 @@
3130

3231
;; nREBL
3332
:nrebl {:extra-deps {rickmoynihan/nrebl.middleware {:mvn/version "0.2.0"}}
34-
:main-opts ["-e" "((requiring-resolve,'cognitect.rebl/ui))" "-m" "nrepl.cmdline" "--middleware" "[nrebl.middleware/wrap-nrebl]" "-I"]}
33+
:main-opts ["-e" "((requiring-resolve,'cognitect.rebl/ui))" "-m""nrepl. cmdline" "--middleware" "[nrebl.middleware/wrap-nrebl]" "-I"]}
3534
```
3635

37-
Check out the [REBL github page](https://github.com/cognitect-labs/REBL-distro) for more info
38-
39-
2. Create a Calva custom connect sequence for your VSCode editor
36+
Create a Calva custom connect sequence for your VSCode editor. (Read [Custom REPL Connect Sequences](connect-sequences.md) if you haven't.) Add the following to your vscode settings.json:
4037

41-
* Read [Custom REPL Connect Sequences](connect-sequences.md) if you haven't
42-
* Add the following to your vscode settings.json
4338
```json
4439
{
4540
"calva.replConnectSequences": [
@@ -59,10 +54,11 @@ Check out the [REBL github page](https://github.com/cognitect-labs/REBL-distro)
5954
```
6055
## Leiningen
6156

62-
1. Add rebl profiles to your [user-wide profiles](https://github.com/technomancy/leiningen/blob/stable/doc/PROFILES.md#declaring-profiles) so that they will be available for all your projects.
63-
A sample user profile (located at `~/.lein/profiles.clj` on mac)
57+
Add rebl profiles to your [user-wide profiles](https://github.com/technomancy/leiningen/blob/stable/doc/PROFILES.md#declaring-profiles) so that they will be available for all your projects. Here's a sample user profile (located at `~/.lein/profiles.clj` on mac):
58+
6459
```clojure
6560
{:user {:plugins [[lein-ancient "0.6.15"]]}
61+
6662
;; REBL Base
6763
:rebl {:resource-paths ["/Users/ozimos/REBL/latest/REBL.jar"]
6864
:dependencies [[org.clojure/core.async "0.4.490"]
@@ -71,24 +67,22 @@ A sample user profile (located at `~/.lein/profiles.clj` on mac)
7167
[cljfmt "0.6.4"]
7268
[org.yaml/snakeyaml "1.23"]]}
7369

74-
;; REBL 12 for JDK 12.0.1. Swap out for your JDK vaersion
70+
;; REBL 12 for JDK 12.0.1. Swap out for your JDK vaersion
7571
:rebl-12 {:dependencies [[org.openjfx/javafx-fxml "12.0.1"]
7672
[org.openjfx/javafx-controls "12.0.1"]
7773
[org.openjfx/javafx-graphics "12.0.1"]
7874
[org.openjfx/javafx-media "12.0.1"]
7975
[org.openjfx/javafx-swing "12.0.1"]
8076
[org.openjfx/javafx-base "12.0.1"]
8177
[org.openjfx/javafx-web "12.0.1"]]}
82-
;; NREBL https://github.com/RickMoynihan/nrebl.middleware
78+
79+
;; NREBL https://github.com/RickMoynihan/nrebl.middleware
8380
:nrebl {:repl-options {:nrepl-middleware [nrebl.middleware/wrap-nrebl]}
8481
:dependencies [[rickmoynihan/nrebl.middleware "0.3.1"]]}}
8582
```
8683
[More info here](https://github.com/eccentric-j/lein-rebl-example)
8784

88-
2. Create a Calva custom connect sequence for your VSCode editor
89-
90-
* Read [Custom REPL Connect Sequences](connect-sequences.md) if you haven't
91-
* Add the following to your vscode settings.json
85+
Create a Calva custom connect sequence for your VSCode editor. (Read [Custom REPL Connect Sequences](connect-sequences.md) if you haven't.) Add the following to your vscode settings.json:
9286

9387
```json
9488
{

docs/remote-development.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ From a Clojure perspective it allows you to have VS Code installed on your Java-
88

99
## A use-case
1010

11-
- for some reason your physical computer has to be running Windows (organisational rules etc.)
12-
- your deployment environment is Linux
13-
- you want to edit files in an editor running on your physical computer
14-
- most Clojure tooling is made with *nix first in mind and there are incompatibilities with Windows
11+
- For some reason your physical computer has to be running Windows (organizational rules etc.)
12+
- Your deployment environment is Linux
13+
- You want to edit files in an editor running on your physical computer
14+
- Most Clojure tooling is made with *nix first in mind and there are incompatibilities with Windows
1515

1616
## WSL
1717

docs/vim.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Calva's various structural selection commands [do not put VIM into VISUAL mode](
1010

1111
In general Calva's default key bindings are not very VI-ish.
1212

13-
You can add these keybindings to your `init.vim` if you are using the VSCode Neovim extension. It is inspired by and tries to emulate the keybindings found in [vim-fireplace](https://github.com/tpope/vim-fireplace) which is the most popular vim plugin for clojure.
13+
You can add these keybindings to your `init.vim` if you are using the VSCode Neovim extension. It is inspired by and tries to emulate the keybindings found in [vim-fireplace](https://github.com/tpope/vim-fireplace) which is the most popular vim plugin for Clojure.
1414

1515
```
1616
nmap cqp :call VSCodeNotify('calva.jackIn')<CR>
@@ -29,7 +29,7 @@ Calva binds **expand selection** to `ctrl+w`. This conflicts with the VIM Extens
2929

3030
### The `esc` key
3131

32-
Calva binds the `esc` key to dismiss the display of inline results. This gets into conflict with any `vi` coding since `esc` then is used to go back to command mode. You can either fix Calva's default keybinding or the VIM extension.
32+
Calva binds the `esc` key to dismiss the display of inline results. This gets into conflict with any `vi` coding since `esc` then is used to go back to command mode. You can either change Calva's default keybinding or the VIM extension's.
3333

3434
Alternatively, you can use the native Vim command `Ctrl + [` to escape and get back to command mode. Rebinding your keyboard's CapsLock key to Control may make this even easier.
3535

0 commit comments

Comments
 (0)