From Bas van Dijk:
To understand these things I would recommend using nix-repl:
$ nix-repl
Welcome to Nix version 1.11.2. Type :? for help.
#!/usr/bin/env bash | |
# | |
# Usage | |
# | |
# python2nix my_pypi_package > my_package.nix | |
# | |
# TODO | |
# - accept 'format' as arg | |
# - prepopulate dependencies? | |
set -euo pipefail |
(ns pms.core | |
(:require [clojure.spec.alpha :as s] | |
[clojure.spec.gen.alpha :as gen] | |
[clojure.spec.test.alpha :as stest])) | |
(comment "This is a small experiment inspired by Oskar Wickströms | |
excellent work at | |
https://haskell-at-work.com/episodes/2018-01-19-domain-modelling-with-haskell-data-structures.html. I | |
wanted to see what would be involved in building the equivalent | |
functionality in reasonably ideomatic Clojure. It is also my first |
(ns ui.paging | |
(:require [hoplon.core :refer (def-values)])) | |
(defmacro defp | |
[name & args] | |
`(def ~name (paginate ~@args))) |
The best:
/* | |
I typically run several emacs instances at once, | |
One handling IM and my timecard etc, | |
and one for each project I'm currently working on. | |
This way I can tailor a given instance of emacs to a given project | |
as much as I want without interfering with the others, | |
it simplifies buffer-switching and desktop saving etc. | |
But it gets to be a PITA command-tabbing between them as they all have the same icon. | |
This fixes that. |