Commit Graph
158 Commits
Author SHA1 Message Date
Willem van den Ende 4c99596065 chore: ignore prompt-*.md
Scratch prompts handed to agent sessions land in the repo root while work
is in progress.  Ignoring /prompt-*.md keeps them out of `git add -A' and
out of history, without having to remember to delete them first.
2026-11-03 13:37:22 +00:00
Willem van den Ende e1afcc96db chore: remove elfeed
Dropped because the UX is confusing and it went unused.  Removed:

  config.el   rmh-elfeed-org-files, elfeed-search-filter, the custom
              "elfeed:" org link type (follow + store), the SPC o e
              binding, my/elfeed-entry-to-org-roam and its SPC "e"
              capture template, and the two elfeed-mode keybindings
  mac/init.el ;;(rss +org) -- the module exists only to provide elfeed,
              so it is now disabled here too (it already was in
              linux/init.el)
  elfeed.org  the feed list, 20 feeds

Kept: the org-link-preview binding (SPC m l p), which sat between the
elfeed blocks and has nothing to do with it.

After pulling on the mac: doom sync, since a module left the list.

Two leftovers this commit does not touch:

  - the feed list Emacs actually read is ~/Documents/qwan/essays/willem/
    elfeed.org (905 bytes, newer than the copy deleted here) because
    rmh-elfeed-org-files was relative to org-directory.  That file now has
    no consumer, and it sits inside org-roam-directory, so it will still
    show up as a node until you delete or archive it.
  - notes captured with my/elfeed-entry-to-org-roam contain
    [[elfeed:...]] links whose link type no longer exists.  They open as
    unknown links now.  I could not check how many there are: the vault is
    not readable from this sandbox.
2026-11-03 13:26:48 +00:00
Willem van den Ende 2bf149a2e8 refactor(init): give init.el one owner per machine
Doom's `doom!' takes a single module list, so this file cannot be shared:
the two machines want different module sets (vertico + popup + workspaces
here, ivy + dashboard + doom-quit there), and the mac list still carries
pre-3.0 names that this Doom rejects.  Instead of merging 143 lines of it,
each machine keeps its own copy:

  linux/init.el   from linux-adopt, verbatim (cmp: identical)
  mac/init.el     the previous root init.el, verbatim (cmp: identical)

The root init.el is now an *untracked* symlink into whichever directory
matches the machine, created by bin/link-machine.sh.  It has to be
untracked: one branch is shared by both machines, and a tracked symlink can
only have one target.  /init.el is gitignored so a stray link can never be
committed and clobber the other machine.

Verified:
  - link resolves: file-truename init.el -> .../linux/init.el
  - the file parses (check-parens) through the link
  - sh -n clean; unknown-machine path exits 1 with a message
  - git status clean apart from this commit (symlink is ignored)

On the mac, after pulling: ./bin/link-machine.sh && doom sync

Caveats, all consequences of the link being untracked:
  - a fresh clone has no init.el until you run the script
  - `git clean -xfd' deletes it; re-run the script
  - Emacs' byte-compiler would write init.elc next to the link (repo root);
    harmless here since *.elc is ignored and the target's mtime wins when
    the .el has been edited

config.el and packages.el stay shared at the root for now: their content is
mostly common, and three-way merges are worth more there than isolation.
That is also why AGENTS.md, snippets/ and qwan/ stay where they are.
2026-11-03 13:13:26 +00:00
Willem van den Ende b703ccb4b0 adopt: config-mac.el -- ownership note, elixir server, blog roots
Pure additions (18 lines, no deletions) on top of upstream's config-mac.el:

- header note that the file is seeded from 0789326 and is now owned here,
  so re-syncing it with `git checkout mac/master -- config-mac.el' is no
  longer safe
- the eglot entry for elixir-ts-mode that was hard-coded in the Linux repo's
  shared config.el as /Users/willem/.elixir-ls/...  It belongs on the mac
  side; the Linux counterpart is in config-linux.el
- blog export roots, with ~/MyDocuments/... as on macOS

This file only loads on darwin, so nothing changes for the Linux machine.
2026-11-03 12:32:53 +00:00
Willem van den Ende c2f24ba1cb adopt(linux): fill in config-linux.el
Replaces upstream's empty stub with the Linux side of the split, from
linux-adopt:

- blog export roots (firehose, jekyll) with the paths that exist here
  (~/Documents/..., not upstream's ~/MyDocuments/...)
- elixir language server: `expert' if installed, else any elixir-ls on
  PATH, else leave eglot unconfigured instead of pointing it at a server
  that cannot start
- the whisper/STT block, moved out of the Linux repo's shared config.el and
  documented as Linux-only: whisper.el + Lemonade on :13305 + PulseAudio
  capture.  It is gated behind `(use-package! whisper ...)', so it stays
  inert until that package is declared in packages.el -- which is still
  hand-merge territory and not done here.

Nothing on the mac side loads this file; it is selected by the
`pcase system-type' dispatch at the end of config.el.
2026-11-03 12:32:48 +00:00
Willem van den Ende 841fbabaea adopt(linux): add live-dictate and firehose-blog from linux-adopt
Two files that exist only on the Linux side, taken verbatim:

  lisp/live-dictate.el   streaming dictation over the Lemonade
                         OpenAI-compatible API (linux repo 978aa86)
  qwan/firehose-blog.el  drag-and-drop images into a firehose blog post,
                         with year dirs, collision suffixes and 16 ERT tests

Both are inert until something requires them.  Wiring lives in
config-linux.el (next commit), not in the shared config.el: live-dictate
depends on whisper.el plus a Lemonade server on :13305, and on macOS
neither exists yet.  Getting live dictation working there is a feature,
not a port: ffmpeg capture, an installed whisper.el, and a reachable
backend.

firehose-blog.el is OS-independent by design and should later replace
qwan/qwan-markdown-dnd.el on both sides -- see the note in config.el.
2026-11-03 12:32:31 +00:00
Willem van den Ende fd66685031 record linux config history as ancestry
The linux config was bootstrapped by copying files out of this repo and has
no common ancestor with it.  Recording it here makes the shared history
navigable from one repo: 17 commits of linux work plus the 4 commits that
paid back the org-roam blog export and split shared config from OS config.

The tree is deliberately unchanged (-s ours).  Content adoption from
linux-adopt happens in follow-up commits, file by file, so each decision
stays reviewable.
2026-11-03 12:28:54 +00:00
Willem van den Ende f687a18806 adopt: wire org-roam blog export; move its roots into the OS files
config.el        require org-roam-export-blog; SPC n r b / SPC n r j
  config-linux.el  firehose ~/dev/elixir/firehose, jekyll ~/Documents/...
  config-mac.el    firehose ~/dev/elixir/firehose, jekyll ~/MyDocuments/...

Upstream sets both roots in the shared config.el.  That does not survive the
trip: the jekyll checkout is ~/MyDocuments/qwan/sites/qwaneu.github.io on
macOS and ~/Documents/qwan/sites/qwaneu.github.io here (both verified to
exist).  So the roots go to the OS files and the shared half holds only the
require and the bindings.  Paths are home-relative, and config-local.el can
override them if a checkout ever moves.

Prefix SPC n r was unused in this config, so no rebinding.

Verified in a scratch checkout: the imported suite passes 20/20
(emacs -Q --batch -L qwan -l qwan/org-roam-export-blog.el
 -l qwan/org-roam-export-blog-test.el -f ert-run-tests-batch-and-exit)
and the existing firehose-blog suite still passes 16/16.
2026-11-03 12:25:56 +00:00
Willem van den Ende 4e9170417a vendor: import org-roam blog export and helpers from mac@0789326
New files, no local counterpart, taken verbatim from upstream:

  qwan/org-roam-export-blog.el       org-roam note -> firehose draft / jekyll draft
  qwan/org-roam-export-blog-test.el  364-line ERT suite for the above
  qwan/test-fixtures/vault/          vault fixture (notes + .attach tree)
  mostalive/{my-org-roam,convert-chats-to-org,journelly-convert-entry-to-org-roam}.el
  config-local.example.el            template for gitignored config-local.el
  elfeed.org, mise.toml              feed list; node 24 pin (2ad9dfd)

Not imported, deliberately:

  qwan/qwan-markdown-dnd.el   earlier, cruder prototype of the same idea as
                              our firehose-blog.el: copies dropped files to a
                              cwd-relative dir, overwrites on name clash,
                              no year dirs, no tests, and evaluates an
                              ert-deftest at load time (upstream had to
                              disable it in 7153a24/e1d2415).  Installing it
                              alongside firehose-blog.el would put two
                              handlers in dnd-protocol-alist for markdown
                              buffers.  Ours supersedes it.
  .devcontainer/, run-container.sh, coe-xx/, .pi/, CLAUDE.md, investigation.md
                              container/game-and-watch/agent scaffolding
  README.org, AGENTS.md       upstream's docs; ours are doom-specific

Nothing is wired up yet -- these files are inert until the next commit
requires them.  Note that mostalive/my-org-roam.el shadows the `my-org-roam'
we currently load from ~/dev/emacs/org-roaming, so do not put mostalive/ on
the load-path without deciding which one wins.
2026-11-03 12:25:22 +00:00
Willem van den Ende a3b0c3d6e2 refactor: split shared config from OS-specific config
Introduces the seam that makes adopting upstream changes safe: config.el
holds what every machine shares, and a pcase on `system-type` at the end of
it loads exactly one OS file.  Leaves are loaded last on purpose, so they
can override shared settings such as `gptel-backend'.

  config-mac.el    seeded from mac repo 0789326 and now owned locally
  config-linux.el  new; Linux paths and binaries only
  config-local.el  per-machine, gitignored (template: config-local.example.el)

Nothing changes for the current machine.  The one line that moved -- the
eglot entry pointing elixir-ts-mode at /Users/willem/.elixir-ls/... -- was
already dead on Linux; it now lives in config-mac.el, and config-linux.el
picks `expert', any elixir-ls on PATH, or nothing at all, in that order.

Rationale: upstream already ships this exact layout (236c0e1 "refactor
config for multi-machine support"), so adopting it costs nothing and every
later upstream hunk then has an obvious correct home -- shared, mac, linux,
or not-committed.

Verified: parens/strings parse in all five .el files; `load!' arity checked
against doom-lib.el (filename &optional path noerror).
2026-11-03 12:25:12 +00:00
Willem van den Ende a06bb22444 chore: adopt mac .gitignore; stop tracking custom.el
custom.el is written by Emacs itself (customize-set-variable) and was
committed on 2024-07-30 by accident.  Upstream mac repo dropped it in
e8df0c9; adopting the same rule here so it can never come back.

Also ignores config-local.el (per-machine backends/paths, template in
config-local.example.el) and stale *.elc.
2026-11-03 12:24:39 +00:00
Willem van den Ende 7ebcc48e33 tidy agents.md wording 2026-11-03 11:58:23 +00:00
Willem van den Ende 978aa86000 add whisper stt via lemonade with live dictation 2026-11-03 11:58:12 +00:00
Willem van den Ende 56bda55eaa add api key for MTPLX gptel backend 2026-11-03 11:58:06 +00:00
Willem van den Ende 3773aa5dd3 add firehose blog image drop helper 2026-11-03 11:57:59 +00:00
Willem van den Ende 07893269f1 feat(blog): open the generated post in another window after export
Export ends by visiting the generated post with find-file-other-window,
so the note stays visible next to the draft it produced; the git diff
on the generated file acts as the review step. Pinned by an ERT test
through the interactive run path.
2026-10-29 22:59:02 +00:00
Willem van den Ende baf389178d feat(blog): export org-roam notes to firehose and jekyll (SPC n r b / n r j)
Move the firehose exporter here from the firehose repo scripts directory
and rename it to the org-roam- prefix so M-x org-roam-export-blog sits
with the other roam commands. Both commands share one pipeline; each
target contributes frontmatter, post path and image convention:

- org-roam-export-blog: firehose draft (Elixir frontmatter, images to
  app/priv/static/images/blog), bound to SPC n r b
- org-roam-export-jekyll: jekyll draft in _drafts/ (YAML frontmatter,
  tags from #+filetags:, images to attachments/blogposts), bound to
  SPC n r j

Repo roots are defcustoms set home-relative in config.el so one value
works on macOS and Linux; unset or absent roots fail loudly. ERT tests
and the fixture vault live alongside; run with the emacs --batch
command in the test file commentary.

Also split per-machine config: config.el now loads config-mac.el only
on darwin and the new config-linux.el on GNU/Linux, and ignores stale
*.elc files that would otherwise shadow newer sources.
2026-10-29 22:55:12 +00:00
Willem van den Ende e438d8eecd fix(journelly): use real cl-lib function names; re-enable ERT tests
journelly-parse-entry called cl-lib-find-if, cl-lib-position,
cl-lib-subseq and cl-lib-remove-if, which do not exist and signal
void-function at runtime. Rename them to the actual cl-lib names
(cl-find-if, cl-position, cl-subseq, cl-remove-if) and re-enable the
two ERT tests covering the parser.

Both tests pass: (ert "test-journelly-*")
2026-10-20 13:00:18 +01:00
Willem van den Ende 2ad9dfde60 chore: track mise.toml pinning node 24 2026-10-20 12:06:37 +01:00
Willem van den Ende e8df0c9dee chore: stop tracking auto-generated custom.el
custom.el is listed in .gitignore but was already tracked, so the
ignore had no effect. It holds machine-local customize state
(absolute paths) and keeps churning; untrack it. The file stays
on disk, so Emacs behavior is unchanged.
2026-10-20 12:06:35 +01:00
Willem van den Ende 689650bebc chore: track .pi directory, ignore its logs and transcripts/
.pi/ currently only holds llm-metrics.log (machine-local); a .gitkeep
keeps the directory tracked while logs stay ignored.
2026-10-20 12:05:19 +01:00
Willem van den Ende ccc05d2735 chore: commit user WIP (doom 3.0 module updates, pi recipe, cl-defstruct)
- init.el: rename :ui doom-dashboard to dashboard (Doom 3.0 rename),
  enable :editor fold, fix garbled file-templates comment line
- packages.el: install pi-coding-agent from dnouri/pi-coding-agent
  on GitHub instead of the default recipe
- mostalive/journelly-convert-entry-to-org-roam.el: replace obsolete
  cl-lib-defstruct with cl-defstruct
- custom.el: record accepted safe-local-variable value (auto-generated)
2026-10-20 12:05:17 +01:00
Willem van den Ende b1055a84d6 feat(org): bind SPC m l p to org-link-preview
Adds a localleader binding in org-mode buffers under the existing
SPC m l (links) prefix. org-link-preview is the Org 9.8 replacement
for org-toggle-inline-images.
2026-10-20 11:37:18 +01:00
Willem van den Ende e5890f8afe fix(pomodoro): install org-pomodoro explicitly; drop obsoleted +pomodoro flag
The ':lang org +pomodoro' flag was obsoleted in Doom 25.04 and no
longer installs the package, so M-x org-pomodoro was missing. Install
it via packages.el and remove the dead flag from init.el.
2026-10-20 11:37:16 +01:00
Willem van den Ende a55f4849ae indentation fixed, deleted ellama, add mtplx 2026-08-27 12:30:01 +01:00
Willem van den Ende 4a27095186 add brief agent instruction 2026-08-27 12:29:54 +01:00
Willem van den Ende e1d2415a8e comment out ert tests to prevent interference on load
Tests were running every time the module was required, which could
interfere with org-roam keybindings like spc n r d t.
2026-07-17 20:33:07 +01:00
Willem van den Ende 7153a24788 don't run ert tests on file load
The (ert ...) call at the bottom of the file was running every time
the module was required, which could interfere with org-roam keybindings.
2026-07-17 20:32:22 +01:00
Willem van den Ende c9040146b5 migrate cl- to cl-lib- in journelly-convert-entry-to-org-roam.el
Replace deprecated cl- functions with cl-lib- equivalents and add
(require 'cl-lib) to silence the 'package cl is deprecated' warning.
2026-07-17 20:19:12 +01:00
Willem van den Ende c83209e86d refactor(elixir): switch from elixir-ls to expert LSP, drop +lsp module 2026-07-15 09:42:17 +01:00
Willem van den Ende d22566dfe2 qwan markdown works 2026-07-02 17:32:30 +01:00
Willem van den Ende 35b6cbc466 changed attachment dir
not sure if we should commit this
2026-07-02 16:39:03 +01:00
Willem van den Ende 50fa992901 how to run test 2026-07-01 22:32:45 +02:00
Willem van den Ende 1e5a4dfc48 unit test faulty generated image drag n drop 2026-07-01 22:26:27 +02:00
Willem van den Ende 70c9416270 we can now drop images on markdown files and link them to the document 2026-06-28 22:34:23 +02:00
Willem van den Ende b78dd4f959 update models 2026-06-28 22:28:46 +02:00
Willem van den Ende 6c2a08bee5 feat: add markdown drag-and-drop for blog images
- Fix org DND flag: +download-dnd → +dragndrop (was silently no-op)
- New qwan-markdown-dnd.el: handles file drops in markdown buffers
  copies images to configurable attachment dir (default: attachments/)
  inserts markdown image links at point
  per-repo config via .dir-locals.el (qwan-markdown-attachment-dir)
- AGENTS.md: document the new module and DND setup
2026-06-28 13:23:59 +02:00
Willem van den Ende a1a363f905 update models 2026-05-05 23:02:49 +01:00
Willem van den Ende 717c358ce3 Fix: roam_refs now go in PROPERTIES at top of node 2026-02-08 21:30:41 +00:00
Willem van den Ende 9c84faa6aa journelly: roam refs before title 2026-02-08 21:04:04 +00:00
Willem van den Ende 673458a404 add qwen3 coder next as remote 2026-02-08 15:26:57 +00:00
Willem van den Ende f6d8accfe4 set up devcontainer 2026-01-27 23:10:33 +00:00
Willem van den Ende 6328bdedd1 fix spelling 2026-01-27 23:10:24 +00:00
Willem van den EndeandClaude Opus 4.5 bc7aa5ada6 add config-mac.el with gptel configuration
- Global gptel-include-reasoning redirects thinking to *llm-thinking* buffer
- Backends: llama.cpp, Ollama, GLM-think (DeepSeek parser)
- Presets: explain, elixir, glm-fast, glm-think, glm-search
- search_notes tool for org-roam integration

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-22 13:28:03 +00:00
Willem van den EndeandClaude Opus 4.5 9df2b59151 add elfeed: org-link type for opening entries from org-roam
- Custom elfeed: link type that opens entries directly in elfeed
- Updated my/elfeed-entry-to-org-roam to include elfeed link in note body
- Notes now have both ROAM_REFS (web URL) and elfeed link (local viewing)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 10:03:51 +00:00
Willem van den EndeandClaude Opus 4.5 c0fd6eedae add elfeed with org-based feed configuration
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 10:10:13 +00:00
Willem van den EndeandClaude Opus 4.5 06b810baa8 enable tree-sitter for javascript/typescript
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18 09:38:57 +00:00
Willem van den EndeandClaude Opus 4.5 236c0e1c4f refactor config for multi-machine support
Move gptel backend configuration to config-local.el (gitignored) so each
machine can have its own LLM setup. Add config-local.example.el as a
template with options for Ollama, remote llama.cpp, and local llama.cpp.

Also make OS-specific paths portable:
- Use ~ instead of hardcoded /Users/willem for elixir-ls
- Wrap macOS TeX path in system-type conditional

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-15 00:53:34 -08:00
Willem van den Ende 839db3ccdc set ollama as default, with qwen3:coder 2025-12-01 21:58:24 +00:00
Willem van den Ende 435fcab6d7 expand presets with models
used  spc h f to explain make-preset and then remembered @preset
2025-11-11 21:14:34 +00:00