-
I'm trying to add template for both clojure-mode and clojure-ts-mode, let's use
In While in I don't know what's causing it, any help would be appreciated, thx in advance... edit: If I tried to expand the template inside a sexp, let's say: ; `[]` is where my point is
(if do[])
; Expand inside `if` works fine in `clojure-mode` and `clojure-ts-mode`
(if (do
[])) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 20 replies
-
I assume the problem is caused by differing indentation behavior of clojure-mode and clojure-ts-mode. Avoid > to prevent automatic indentation. Iirc there have been similar questions about the indentation behavior. I suggest to search the issue tracker and discussion forum. |
Beta Was this translation helpful? Give feedback.
My suggestion would be to manually indent with spaces if
>
doesn't do the right thing. Alternatively you could try to override the indentation functions. To be clear, this is not a Tempel issue. Tempel just uses the indentation functionality from the underlying mode, and you have to adapt your templates accordingly.