clojure-emacs / clojure-mode

Emacs support for the Clojure(Script) programming language
910 stars 246 forks source link

Comment behavior #554

Closed cassc closed 4 years ago

cassc commented 4 years ago

Line comment not working as expected in older versions.

Expected behavior

Type ;; in front of :x-func should comment out :x-func [#()] and add a line break after the s-expression

{:esc {:view   :program-stat
       :x-func [#()]}}

Actual behavior

Note the s-expression is broken:

{:esc {:view   :program-stat
       ;;:x-func [#()]}}

clojure-mode version

5.11.0 and 20191112.1948

yuhan0 commented 4 years ago

I believe structural editing modes like Paredit or Lispy already have this feature and work across all Lisp-like languages.

cassc commented 4 years ago

@yuhan0 Paredit is what I need. Thank you!