Fork me on GitHub
#emacs
<
2020-03-03
>
nmkip01:03:00

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

nmkip01:03:47

evil-paredit did the trick

practicalli-johnny15:03:42

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

andrea.crotti19:03:34

I think dumb-jump is a better choice @jr0cket

practicalli-johnny19:03:16

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.

andrea.crotti19:03:01

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

ag21:03:15

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-johnny21:03:41

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.

zilti21:03:52

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

ag21:03:21

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

dpsutton21:03:09

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

dpsutton21:03:38

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

zilti21:03:54

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

ag21:03:26

yeah, you can just disconnect

dpsutton22:03:49

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

dpsutton22:03:36

i run out of cpu and memory

ag22:03:24

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

dpsutton22:03:51

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

dpsutton22:03:57

but that should solve my woes. thanks!

ag23:03:18

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