This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-02-12
Channels
- # announcements (32)
- # aws (7)
- # babashka (2)
- # babashka-sci-dev (1)
- # beginners (25)
- # biff (1)
- # calva (1)
- # cider (27)
- # clj-kondo (15)
- # clojure (24)
- # clojure-berlin (1)
- # clojure-czech (4)
- # conjure (9)
- # cursive (7)
- # datalevin (1)
- # emacs (19)
- # events (1)
- # gratitude (1)
- # integrant (1)
- # introduce-yourself (2)
- # java (4)
- # meander (17)
- # membrane (4)
- # podcasts (1)
- # releases (1)
- # remote-jobs (2)
- # ring-swagger (8)
- # shadow-cljs (14)
- # testing (1)
- # tools-build (5)
- # tools-deps (3)
I just began using clojure-lsp with emacs. However, cljfmt does not seem to be working at all. Do I have to include cljfmt in my deps.edn for it to work? I couldn't find this in the installation tutorial...
cljfmt generally fixes indentation only, it's not a canonical formatter. The idea is to be a little more lenient, allowing style differences where it's hard to establish a single truth zprint is better oriented towards canonicalization. Whether it can have 100% technical coverage or social acceptance, is another story. Super interesting and flexible project anyway.
@U6SEJ4ZUH try formatting:
(defn
something
to
format)
it should format to:
(defn
something
to
format)
It always says "no format changes" despite there's obvious lines need to be formatted...
anyone using emacs 28? i'm updating today from 27 and i'm curious what, if any, issue people have encountered.
IIRC I just got some warnings when I upgraded and had to update some packages and setq
s in my init.el
Has anyone tried this for clojure development? https://github.com/dandavison/delta I think it's saying it will show specific diffs in my working file. Which i think i would really enjoy.
nope, never mind it still just has diffs in the git buffer
Magit seems that do the most popular important aspect for me, like word level diff highlights. If I am diff'ing outside of Emacs (very rarely) then I use meld (application on Linux)
Spacemacs can highlight changed lines in the fringe, or as highlighted lines in the source code buffer using Smeargle https://practical.li/spacemacs/source-control/magit/version-highlighting.html
it yields better diffs, but there are performance-issues. At least last time I tried with magit-delta, there were some issues that I didn’t bother to investigate
@U0B1SDL67 is there a difference from the diff you get from setting magit-diff-refine-hunt
to 'all
? in the context of a init.el file under spacemacs layers:
(git :variables magit-diff-refine-hunk 'all)
That seems to get me the same level of diffing only it doesn't try to color the code (only the diff) which i prefer as it lets me focus on the changes more.