emacs-evil/evil-cleverparens

handling comments

Closed this issue · 3 comments

Hi again,

I was wondering if there was a way to intelligently deal with comments. Here's an example

(let (a)
  ;; a is ...
  (setq a 1))

Try dd on the last line. The closing paren moves into the comment and now we have a problem and need a manual fix. Is it possible to jump the comment or put the closing paren before the comment? Something that would keep the expression valid.

I would be fine with this result too

(let (a)
  ;; a is ...
  )

Turned out to be a rather easy fix :)

Thanks! I thought it might be