Fork me on GitHub
#emacs
<
2022-11-03
>
Matthew Twomey15:11:35

Survey Q: I find that I use sp-wrap-round allthe_time_ but I have not yet bound it to anything keywise. What do other folks do here? (I’m using doom fwiw)

jkxyz15:11:01

With evil-cleverparens it's called by the binding for M-(

jkxyz15:11:19

You also get M-[ and M-{ for wrapping in a map or vector

magnars16:11:01

Yes, these are the bindings ☝️ ❤️

Matthew Twomey16:11:27

Nice. Sounds like a couple solid votes for evil-cleverparens (I hadn’t heard of it)

magnars16:11:55

I'm not using evil-cleveparens, but I do approve of those bindings 😅

otfrom16:11:30

would sp-wrap-around be in visual mode?

Matthew Twomey17:11:52

I use it typically by positioning point at the start of the form

ag18:11:21

> (I’m using doom fwiw) @U0250GGJGAE we had related discussion not too long ago here in #doom-emacs: https://clojurians.slack.com/archives/C01GE5PD249/p1664832575526619

Matthew Twomey03:11:45

Thanks all! Some good ideas here and things to check out 🙂

diego.videco16:11:15

Does anyone else runs into problems with “Too many open files” while using lsp on a mac?

1
ericdallo16:11:18

Maybe lsp file watch is scanning folders which shouldn't

diego.videco16:11:33

how can I know what is it watching?

ericdallo16:11:36

We used to have on lsp-mode a way to check that but I don't find it anymore

ericdallo16:11:48

maybe try disabling for now and check if it keeps happening

ericdallo16:11:06

lsp-enable-file-watchers

upvote 1
diego.videco17:11:43

thank, I’ll try that. What happens if I disable that?

ericdallo17:11:00

Emacs will not know when a file was changed outside the editor, for example git branch switches

ericdallo17:11:12

and then lsp may become outdated in its analysis, requiring a restart

ericdallo17:11:24

I never disable that or suggest to do that

ericdallo17:11:41

it was a suggestion just to check if the too many open files was related to file watchers

diego.videco17:11:35

I see. I’ll report back if it happens again

mpenet18:11:24

no issue here, on some pretty large (mono)repos

ag18:11:01

@U7AMPCPU2 next time it happens try running (file-notify-rm-all-watches)

ag18:11:47

Of course. And if the version of emacs you have doesn't have that function, here it is, you can probably just copy it into your config:

(defun file-notify-rm-all-watches ()
  "Remove all existing file notification watches from Emacs."
  (interactive)
  (maphash
   (lambda (key _value)
     (file-notify-rm-watch key))
   file-notify-descriptors))