emacs

Consider also joining #cider, #lsp and #inf-clojure, where most of the tool-specific discussions are happening.
nmkip 2020-03-03T01:23:00.094Z

Is there a package that prevents me from deleting parens in normal mode (evil)?

nmkip 2020-03-03T01:26:47.094400Z

evil-paredit did the trick

practicalli-john 2020-03-03T15:39:42.098800Z

Anyone using ctags successfully with Clojure to jump to definitions and other symbols? I have ctags installed and can create a local database of tags using helm gtags and choosing the ctags backend, but searching on tags does not seem to find anything. I am wondering how to debug this issue. This is my first time using gtags/ctags

2020-03-03T19:15:34.101500Z

I think dumb-jump is a better choice @jr0cket

2020-03-03T19:16:01.102300Z

I use that as fallback when I don't have a cider connected

practicalli-john 2020-03-03T19:30:16.102400Z

Yes, I haven't really felt the need for ctags/gtags, but I was curious as they seem common in other languages. Although I can get a ctags dictionary generated for a Clojure project, , I failed to get Emacs gtags to work with it or generate its own gtags for the Clojure project. So without further inspiration, I will abandoned ctags. I have plenty of other things to discover.

ag 2020-03-03T21:00:15.104100Z

with lsp you can jump to definitions, it’s more reliable than anything else. Caveat? It still takes some time to start. I wish someone tried wrapping clojure-lsp with Graal

practicalli-john 2020-03-03T21:02:41.104300Z

I will have a look as LSP although haven't looked into how to set up the Clojure side of things for Spacemacs. Adding the lsp layer is easy enough, but my understanding is you need to configure something for each specific language.

zilti 2020-03-03T21:33:52.105400Z

Why does it matter if Clojure-LSP takes three seconds to start? How often are you restarting your editor?

dpsutton 2020-03-03T21:37:09.106300Z

at work i have a single long running process. at home i play with shadow and do lots of one offs and read lots of code from different projects. this kills my machine as viewing a deps.edn file or reading files in random projects starts up lots of jvms

dpsutton 2020-03-03T21:37:38.106700Z

i don't know how to kill an lsp session so i'll killall java occasionally

ag 2020-03-03T21:50:21.106900Z

Yeah, it’s just a minor annoyance, I agree. Still would be very nice if it started faster. Having to wait for both lsp-server to start and then CIDER to jack-in a bit too much

zilti 2020-03-03T21:51:54.107400Z

Why even kill lsp at all? It isn't meant to be handled by you at all

ag 2020-03-03T21:59:26.107700Z

yeah, you can just disconnect

dpsutton 2020-03-03T22:01:49.108300Z

because if i leave emacs open and read a file from three different projects i have 4 lsps open and my repl

dpsutton 2020-03-03T22:03:36.108500Z

i run out of cpu and memory

ag 2020-03-03T22:20:24.109100Z

I’m not exactly sure what you mean, M-x lsp-disconnect doesn’t work?

dpsutton 2020-03-03T22:21:51.109400Z

i think i had missed that one. i think i had been searching for close

dpsutton 2020-03-03T22:21:57.109600Z

but that should solve my woes. thanks!

ag 2020-03-03T23:35:18.111500Z

the problem with lsp-disconnect - lsp injects lsp related hooks, etc. but doesn’t clean up after itself, so for example you do lsp-disconnect, but imenu would be broken