2022-11-10

Published: Dec 05, 2022Last modified: Apr 24, 2023
Word count: 565

an excellent babashka tasks.clj file

From portal, recommended in clojurians.

Looks like some great patterns for pretty-printing running tasks.

finally getting started with portal today

Adding portal as a dep to org-blog, and improving my emacs clojure bindings. I now have a hydra dedicated to cider -eval commands for tools like systemic, wing, portal, and clerk.

Portal is an interactive data inspector for working with clojure's tap> feature. It is a bit like println -ing values, but less like a neanderthal and more like an interactive lisp developer.

> TODO attach commits from org-blog, dotfiles

undo whatever git action you just performed

TIL you can undo whatever git action you just took pretty easily:

git reset --soft HEAD@{1}

In my case, I had amended a change to the latest commit, when I should have instant-fix-up-ed it to the second to latest commit. Now my last commit is muddied!

Running this is a literal undo - the staged bit is returned to staged, and we're back in time to meld it into the proper commit.

Thanks, git-fu!

libgdx clojure thing

why aren't I trying out these clojure-y game engines?

too much love for godot?

just added a dep via neil completely within emacs

Worked really great, tbh.

M-x neil-find-clojure-package just-works, deps.edn updated!

---

update: further usage added the dep to a totally new deps.edn in src/deps.edn. So, not perfect yet. I'd bet it's expected to be used from the project root.

org-blog commit rendering, via diff2html?

mastodon post

I've been trying to focus in on some #GodotEngine #GameDev today, but focus can be a real struggle sometimes.

I keep finding myself in a #clojure repl or writing in my #org journal... I wish I could clojure-repl against the godot game!

I'm probably just staying in my comfort zone. Gotta break out of it!

TODO toward imenu for gdscript

from cameron, example imenu integration for re-frame.

(general-add-hook
 'clojurescript-mode-hook
 (lambda ()
   (add-to-list 'imenu-generic-expression
                '("Spec" "s/def[[:blank:]\n]+:+\\(.*\\)" 1))
   (add-to-list 'imenu-generic-expression
                '("Effect" "reg-fx[[:blank:]\n]+:+\\(.*\\)" 1))
   (add-to-list 'imenu-generic-expression
                '("Coeffect" "reg-cofx[[:blank:]\n]+:+\\(.*\\)" 1))
   (add-to-list 'imenu-generic-expression
                '("Event" "reg-event-\\(db\\|fx\\)[[:blank:]\n]+:+\\(.*\\)" 2))
   (add-to-list 'imenu-generic-expression
                '("Sub" "reg-sub[[:blank:]\n]+:+\\(.*\\)" 1))))