Skip to content

Commit 7ee985a

Browse files
committed
Add clojure-ts-mode support
1 parent 9aea501 commit 7ee985a

File tree

3 files changed

+119
-53
lines changed

3 files changed

+119
-53
lines changed

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
# Changelog
22

33
## master (unreleased)
4+
45
* Improve support for multiple forms in the same line by replacing beginning-of-defun fn.
56
* [#202](https://github.com/clojure-emacs/inf-clojure/issues/202): Add ClojureCLR support.
67
* [#204](https://github.com/clojure-emacs/inf-clojure/issues/204): Scroll repl buffer on insert commands
78
* [#208](https://github.com/clojure-emacs/inf-clojure/pull/208) Display message after setting repl.
8-
* [#210](https://github.com/clojure-emacs/inf-clojure/pull/210) Include `inf-clojure-socket-repl` to create a socket REPL and connect to it from inside Emacs.
9-
9+
* [#210](https://github.com/clojure-emacs/inf-clojure/pull/210) Include `inf-clojure-socket-repl` to create a socket REPL and connect to it from inside Emacs.
10+
- [#217](https://github.com/clojure-emacs/inf-clojure/pull/217): Add `clojure-ts-mode` support.
1011

1112
## 3.2.1 (2022-07-22)
1213

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,10 @@ You can also add the following to your Emacs config to enable
103103

104104
```emacs-lisp
105105
(add-hook 'clojure-mode-hook #'inf-clojure-minor-mode)
106+
107+
;; or if you're a `clojure-ts-mode' user:
108+
109+
(add-hook 'clojure-ts-mode-hook #'inf-clojure-minor-mode)
106110
```
107111

108112
**Warning:** Don't enable `inf-clojure-minor-mode` and `cider-mode` at the same time. They
@@ -217,6 +221,22 @@ If you want to update a specific form there is a function
217221
(inf-clojure-update-feature 'clojure 'completion "(incomplete.core/completions \"%s\")")
218222
```
219223

224+
### `clojure-ts-mode` support
225+
226+
To use `inf-clojure` with `clojure-ts-mode`, you can adjust the
227+
following variable:
228+
229+
```emacs-lisp
230+
(setopt inf-clojure-source-modes '(clojure-ts-mode clojure-mode))
231+
```
232+
233+
If you want to use `inf-clojure` with `clojure-ts-mode` exclusively,
234+
you can set it to:
235+
236+
```emacs-lisp
237+
(setopt inf-clojure-source-modes '(clojure-ts-mode))
238+
```
239+
220240
#### Caveats
221241

222242
As `inf-clojure` is built on top of `comint` it has all the usual comint limitations -

0 commit comments

Comments
 (0)