Fork me on GitHub
#emacs
<
2023-07-30
>
Omar14:07:35

have you guys using it in wsl2 + wslg been able to get it to work with powertoys? my emacs window doesn't respond to my keyboard shortcuts or fancyzones.

Omar14:07:57

found this https://github.com/microsoft/wslg/issues/22 looks like i'm stuck with x410 for now

vemv20:07:44

example?

hifumi12321:07:48

queries look like this

(d/q '[:find ?name
       :where [?e :person/name ?name]
              [?e :person/zip  90210]]
     (d/db conn))
but CIDER will default to this
(d/q '[:find ?name
       :where [?e :person/name ?name]
       [?e :person/zip  90210]]
     (d/db conn))

vemv21:07:45

As you might imagine, to clojure-mode/cider-mode that's just a vector, undistinguishable from other vectors It seems possible to have a datomic-mode, but someone would have to crank it out :) This alternative will be aligned the same by a variety of tools:

(d/q '[:find ?name
       :where
       [?e :person/name ?name]
       [?e :person/zip  90210]]
     (d/db conn))

hifumi12321:07:14

yup, that is what I am doing for now… XTDB uses vector of vectors for where clauses, so it does not have this indent problem. Oh well, something to keep in mind while I use Datomic

👍 2
vemv21:07:59

Personally I would enjoy a datomic minor mode, and a honeysql one, among others... simply a matter of effort/reward ratio

vemv21:07:23

Maybe things will be nicer with clojure-mode reimplemented on top of treesitter? IDK

hifumi12321:07:17

I have just realized there is something funny I can do 😄

(d/q '[:find ?name
       :where [?e :person/name ?name]
       ,      [?e :person/zip  90210]]
     (d/db conn))

💡 2
hifumi12321:07:49

now i can indent the whole buffer and the position of the vectors doesnt change