This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-08-17
Channels
- # beginners (70)
- # boot (4)
- # cider (16)
- # clara (6)
- # cljdoc (21)
- # cljs-dev (2)
- # cljsrn (1)
- # clojure (73)
- # clojure-finland (2)
- # clojure-nl (6)
- # clojure-russia (35)
- # clojure-sg (1)
- # clojure-spec (14)
- # clojure-uk (146)
- # clojurebridge (2)
- # clojurescript (128)
- # cryogen (2)
- # cursive (20)
- # datomic (27)
- # emacs (6)
- # events (8)
- # figwheel-main (57)
- # fulcro (46)
- # hoplon (3)
- # hyperfiddle (2)
- # immutant (3)
- # jobs (6)
- # jobs-discuss (15)
- # juxt (2)
- # off-topic (33)
- # parinfer (2)
- # portkey (4)
- # protorepl (1)
- # re-frame (4)
- # reagent (78)
- # ring-swagger (45)
- # schema (6)
- # shadow-cljs (167)
- # spacemacs (2)
- # specter (13)
- # tools-deps (6)
Anyone know how to make single ;
comments align the same way as double ;;
comments? I'm pretty sure this is built-in lisp mode behaviour, and tho I don't hate it, my co-workers who don't use emacs use single ;
for regular, not end of line comments
@j0ni That’s not possible. This behaviour is not configurable. In classic Lisp style ;
is an inline comment and ;;
is a line comment, therefore the different behaviour.
This can be changed, of course, but it’d be pretty painful as we’ll have to override some of the lisp-mode
code. Cursive recently added support to use ;;
for line comments, which should alleviate problems like yours.
I (unfortunately) found myself in the same situation as you, @j0ni. You can set setq comment-indent-function
to something like the following:
https://github.com/vemv/.emacs.d/blob/c31246010a7c8862515b365437d58a38cecf5d01/lib/non-submodules/vemv.paredit.el#L349
Battle-tested for a few weeks, finally works fine after some traumatic first iterations. I'd recommend just settling on ;;
like good Clojure citizens 🙂