This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-05-14
Channels
- # beginners (74)
- # boot (1)
- # cider (6)
- # clj-kondo (8)
- # cljs-dev (30)
- # clojure (195)
- # clojure-ecuador (1)
- # clojure-europe (2)
- # clojure-italy (51)
- # clojure-nl (47)
- # clojure-spec (9)
- # clojure-sweden (27)
- # clojure-uk (63)
- # clojurescript (84)
- # cursive (41)
- # datascript (17)
- # datomic (16)
- # docker (1)
- # emacs (10)
- # events (2)
- # graalvm (2)
- # graphql (37)
- # juxt (2)
- # nrepl (20)
- # nyc (2)
- # off-topic (26)
- # onyx (3)
- # pedestal (4)
- # perun (19)
- # planck (1)
- # reagent (9)
- # reitit (4)
- # shadow-cljs (208)
- # spacemacs (6)
- # tools-deps (4)
I'm using spacemacs, and have been seeing some weird indentation issues with comments. Namely, they get autoindented to the 40th column. Any pointers on where to look for what is going wrong?
as I type that, I realize it is only happening with single ;
comments, ;;
comments get indented properly
SPC ;
will toggle the comment for a region and SPC ; ;
will toggle a comment on a line.
In Evil (vim) normal state, you can also use g c c
to toggle the comment of a line and g c
to toggle the comment of a region
You can also use M-;
to add a comment line.
Spacemacs will use the default comment syntax for the current mode. If there is no default syntax for a comment, Spacemacs will prompt you 🙂
AFAIK clojure-mode follows these semicolon conventions: https://www.gnu.org/software/emacs/manual/html_node/elisp/Comment-Tips.html
@donaldball Yeah, that’s right. Also documented here https://github.com/bbatsov/clojure-style-guide#comments