emacs

Consider also joining #cider, #lsp and #inf-clojure, where most of the tool-specific discussions are happening.
practicalli-john 2020-03-09T14:03:30.127Z

It is possible to configure projectile to recognise a project within another project? I have a ~/projects/exercism/clojure directory that is managed by Git. That directory contains several Clojure projects. I would like to use projectile-toggle-between-implementation-and-test whilst in a specific Clojure project, eg ~/projects/exercsim/clojure/bank-account to switch between source and test. Unfortunately, it cant switch as projectile believes is a generic project, I assume because there is a .git directory in the parent of bank account. So is there a way, for example using a dir.local.el to tell projectile to use the bank-account directory as the root of the project when any file from the bank account directory is open. I have tried a few experiments, but nothing has worked yet.

practicalli-john 2020-03-09T14:40:21.129600Z

I found a solution to my project within projects. As they are all the same type of project, clojure-cli (well actually they are Leiningen projects, but the same pattern matching is used) then I added a dir.local.el file to the root of the projectile project (`~/projects/exercism/clojure` and everything works nicely.

((nil . ((projectile-project-type . clojure-cli))))

👍 1
zilti 2020-03-09T18:31:35.131900Z

Just in case someone else has a similar problem. I noticed that my Emacs, as soon as I was jacked into CIDER, would constantly automatically reformat my code. As it turned out, lispy-mode is the evildoer in this case. I uninstalled it. What are you guys using for parenthesis modifications? Ideally something that cooperates with evil-mode. Currently I am back to paredit.

practicalli-john 2020-03-10T07:23:25.134500Z

I use smartparens with strict mode for structured editing in all languages. As I use Evil, I also use evil-cleverparens so evil commands respect structural editing. They are both in Spacemacs, just need toggling on.

zilti 2020-03-10T09:58:55.134900Z

@qythium auto-deleting whitespace, auto-reformatting the line the cursor is on, stuff like when I insert a newline it deletes it again, adding whitespace before a colon and before a # sign, and so on

aisamu 2020-03-10T11:46:33.135100Z

Aboabo is very responsive - it might be worth opening an issue on github

yuhan 2020-03-10T14:29:18.135700Z

I use lispyville and never had any of those issues - maybe that's worth a try