Fork me on GitHub
#emacs
<
2023-08-10
>
Per Nissilä11:08:52

For clojure development in Emacs, do you use an emacs distro like doom or spacemacs or are you using vanilla emacs with your own config? Being familiar and somewhat proficient with both emacs and vim keybindings i’m having a hard time deciding.

corgi-emacs 2
jkxyz11:08:05

Doom is great! Also makes it very easy to switch to vim when I'm working over SSH and editing a file on a server

👍 4
daveliepmann11:08:42

I and a handful of folks I know use https://github.com/jackrusher/dotemacs

👍 2
Ellis11:08:54

Doesn't really matter at the end of the day, try them all out and pick the one you vibe with most. #C01GE5PD249 has pretty decent clojure support, but all you really have to do is install cider

anonimitoraf11:08:41

Yeah, cider and maybe lsp-mode+clojure-lsp

practicalli-johnny12:08:22

There are many Emacs community configs to choose from, most support Cider Repl, Clojure-mode, Clojure LSP (eglot or lsp-mode), etc. Using a community config helps minimise the learning curve and do more in a lot less time. However, if time is available and learning about Emacs and it's many hundreds of packages is more valuable then rolling a custom confirmation tailored to an individuals needs would be more appropriate. I use Spacemacs with Evil (vim style editing) as it works very much out of the box so I can be productive quickly, very little config needed (although can be customised heavily if required). I wrote a book about using Spacemacs for Clojure development (and other things), much of which is applicable to any Emacs setup https://practical.li/spacemacs/

👍 2
Evan Bernard14:08:14

i like to configure things as little as possible when starting out with some new tool, just to see what it’s “supposed” to be like (and to get a sense of what the creators think makes for sensible defaults 😉), and after slowly starting to configure it over the years, i’ve never felt a need to move to something like doom/spacemacs

iarenaza19:08:27

I'm using vanilla Emacs, with my own custom config (built over the years), and mostly default key bindings (I only add a handful of them --probably less than 10--, and don't replace any of the standard ones, IIRC). But as others said, try several options and pick the one you are most confortable with.

👍 4
Matti Uusitalo09:08:30

hand rolled custom config, there's so much to learn even in Emacs itself, can't even think about learning doom / space / other on top of that

Per Nissilä14:08:18

How do you get evil commands like dd to play nicely with balanced ()-pairs?

tomd14:08:17

If you choose the former and have any feedback, lemme know - I look after the project

🧡 5
Ellis14:08:53

I've been using the former with good success for a while now 🙂 I keep having random niggles, but they're so minor I forget to write them down to complain 😅 Otherwise it does the job great!

👍 2
tomd14:08:28

Any chance it could be added to doom @U043RSZ25HQ?

Ellis14:08:43

Good point, I can certainly propose it

emacs-spin 2
practicalli-johnny17:08:17

I use evil-cleverpaerens with Clojure, which is included in Spacemacs, enabled by a hook https://practical.li/spacemacs/structural-editing/cleverparens/ Would be nice to have it in other configs too

💡 1
ruseel00:08:14

‘symex + doom’ worked for me.

👍 1
jasonjckn07:08:35

@UE1N3HAJH i added 'eval motions' to ecp, its been incredibly vital to my workflow https://gist.github.com/jasonjckn/b3c374c51c7d298982df985c313ff1b3

jasonjckn07:08:56

i could try to upstream it if you think you're likely to merge, or feel free to take my terrible code and make it nice

jasonjckn07:08:01

also in there, i have the ability to save to a register any sexp covered by a motion ,and remember which namespace it belonged to , so i can rerun it anywhere , sort of like q<reg>, @<reg>

tomd07:08:40

@U0J3J79FE evil-cleverparens is supposed to be mostly programming-language-agnostic. So I'm always wary about adding functionality like this. I have thought for a while that there is appetite out there for an evil-clojure or evil-cider package, and some of your ideas could be good there.

👍 2
jasonjckn08:08:52

makes sense, thx for pkg 🙏