clj-commons / etaoin

Pure Clojure Webdriver protocol implementation

Home Page:https://cljdoc.org/d/etaoin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dev: add formatting config

lread opened this issue · comments

I'm finding it a tiny bit annoying that formatting from doom emacs with clojure-lsp is not what I'd like it to be.

For example, the default formatting config assumes formatting should be like so:

(e/when-safari *driver*
               (do some stuff)
               (here))

Instead of like so:

(e/when-safari *driver*
  (do some stuff)
  (here))

This makes sense, cljfmt does not know about when-safari, etc.

Can I add a .cljfmt.edn to resolve?

To be clear, I'm not proposing format validation with cljfmt, just a better default config when editing Etaoin source code. I suppose this config could also be a useful example for folks using Etaoin.