Fork me on GitHub
#emacs
<
2019-08-05
>
tianshu09:08:13

Is there a tool can help me find typos when developing clojure in emacs? especially for typo :keyword.

bozhidar09:08:28

(if integrated with flycheck mode, that is)

dmaiocchi11:08:22

Seem cool thing

dmaiocchi11:08:41

I might use it also ๐Ÿ˜ I am a senior typos developer

4
๐Ÿ˜ 4
tianshu13:08:13

Looks like misspell does a good job for english words. But in my case, there are a lot variables that is not english. I hope something find the similar words those has posibility for one of them is typo. e.g. params and parmas

vemv13:08:06

are you genuinely aiming to tackle typos? i.e. literally the generalised problem of typos, be it in docstrings, variable names, etc rather, you might want a two-faced solution which really isn't typo-centric: - using clojure.spec to catch bad arguments - using a specific keyword linter for ensuring consistency between the corpus of keywords within your codebase

tianshu14:08:37

yeah, I think spec is good for this, but the typo problem can come at any moment.

andy.fingerhut18:08:01

It is disabled by default because on several Clojure projects I have run it on, it can be fairly noisy, for code written apparently as the author intended it, e.g. some Clojure authors intentionally use keywords that are similar to each other.

vemv13:08:51

with this approach, you trim down the problem domain and can forget about English language intricacies, an approach which seems bound to give false positives/negatives.

bozhidar14:08:28

@vemv Often people just repeat the same typo all over the code. clojure.spec wonโ€™t help you with that. ๐Ÿ™‚

vemv14:08:45

@ both: yeah, I can see how people may genuinely care about typos

tianshu16:08:23

I do not do copy/paste so much in order to find typos. But how I find it is running into some error. compiler won't tell you the keyword is wrong and keyword is so widely used in Clojure.

alexeiz17:08:36

anybody has a good example of how to setup emacs/cider/shadow-cljs properly? I'm not able to get repl working in emacs

vemv11:08:03

have you considering going with a starter/defaults kit for a while? e.g. https://github.com/bbatsov/prelude later you can discard it, the point is to get you up and running