This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-12-08
Channels
- # adventofcode (49)
- # babashka (21)
- # babashka-sci-dev (12)
- # beginners (250)
- # calva (23)
- # cider (6)
- # clj-kondo (11)
- # cljsrn (8)
- # clojure (129)
- # clojure-europe (50)
- # clojure-france (8)
- # clojure-italy (6)
- # clojure-nl (14)
- # clojure-romania (7)
- # clojure-spec (21)
- # clojure-uk (3)
- # clojurescript (17)
- # conjure (1)
- # core-async (40)
- # core-logic (24)
- # core-typed (7)
- # datavis (2)
- # datomic (2)
- # emacs (29)
- # fulcro (10)
- # graalvm (6)
- # graphql (24)
- # gratitude (6)
- # jobs (1)
- # lsp (9)
- # malli (6)
- # missionary (1)
- # nextjournal (46)
- # off-topic (2)
- # other-languages (3)
- # pathom (5)
- # portal (2)
- # re-frame (37)
- # remote-jobs (1)
- # shadow-cljs (15)
- # spacemacs (9)
- # testing (6)
- # tools-deps (13)
- # vim (32)
- # xtdb (16)
for anyone using clojure-mode, here are some useful indents
(define-clojure-indent
(defroutes 'defun)
(GET 2)
(POST 2)
(PUT 2)
(DELETE 2)
(HEAD 2)
(ANY 2)
(OPTIONS 2)
(PATCH 2)
(rfn 2)
(let-routes 1)
(context 2)
(ns '(1 0)))
the ns one is to match intellij cursive's indentation of ns
I guess it can go one way or another ¯\(ツ)/¯
it's funny, cljstyle does it like intellij
I run into it at work all the time
it's annoying
in an extra bit of fun news: cljstyle indents ns like intellij while cljfmt indents ns like emacs
you can make cljstyle
work like emacs though: https://github.com/lukaszkorecki/command-center/blob/master/etc/cljstyle
@lukaszkorecki I think cljfmt could be made to work like intellij, too?
I'm pretty indifferent, but we have more intellij users than emacs users
I'm not sure, but it's a good question: in my team we have all of the editors (interllij, emacs, doom emacs, vim, vs code) and I'm forcing everyone to use cljstyle + shared config. So having the same tool integrated into all editors would be neat
oh, I'm using doom emacs, too, but I don't think they fiddle with clojure indents
they add a +clojure-disable-lsp-indentation-h
function
is anyone using a mode for asciidoc?
there are a few out there
Funny you should mention adoc @corasaurus-hex, I’m just learning/setting up doom emacs and have just configured adoc-mode
. (I don’t know if there are better choices, sorry).
I used this package in spacemacs too and found the the default font choices rather odd.
But you can override them (https://randomgeekery.org/config/emacs-bmw/#headline-37):
(use-package markup-faces
:config
(set-face-attribute 'markup-title-0-face nil :height 1.0)
(set-face-attribute 'markup-title-1-face nil :height 1.0)
(set-face-attribute 'markup-title-2-face nil :height 1.0)
(set-face-attribute 'markup-title-3-face nil :height 1.0)
(set-face-attribute 'markup-title-4-face nil :height 1.0)
(set-face-attribute 'markup-title-5-face nil :height 1.0)
(set-face-attribute 'markup-secondary-text-face nil :height 1.0)
(set-face-attribute 'markup-meta-face nil
:height 1.0
:foreground (face-attribute 'font-lock-comment-face :foreground))
(set-face-attribute 'markup-meta-hide-face nil
:height 1.0
:foreground (face-attribute 'font-lock-comment-face :foreground))
(set-face-attribute 'markup-list-face nil
:background (face-attribute 'font-lock-builtin-face :background)
:foreground (face-attribute 'font-lock-builtin-face :foreground))
(set-face-attribute 'markup-table-face nil
:background (face-attribute 'font-lock-builtin-face :background)
:foreground (face-attribute 'font-lock-builtin-face :foreground))
(set-face-attribute 'markup-verbatim-face nil
:background (face-attribute 'font-lock-string-face :background)
:foreground (face-attribute 'font-lock-string-face :foreground)))
(`markup-faces` is included with adoc-mode)Honestly, I often switch to Calva when editing markdown because its preview is pretty sweet.
nice!! thanks!
and yeah, vs code does a lot of great things