Skip to content

Extract words-of-inspiration + tips into cider-inspiration.el#3911

Merged
bbatsov merged 2 commits into
masterfrom
extract-inspiration
May 13, 2026
Merged

Extract words-of-inspiration + tips into cider-inspiration.el#3911
bbatsov merged 2 commits into
masterfrom
extract-inspiration

Conversation

@bbatsov
Copy link
Copy Markdown
Member

@bbatsov bbatsov commented May 13, 2026

cider-util.el is meant to be small cross-cutting utilities, but a ~160-line block at the bottom held the random connect-greeting quotes (cider-words-of-inspiration) and the keybinding tips list (cider-tips), plus the trivial pickers around them (cider-random-words-of-inspiration, cider-inspire-me, cider-random-tip, cider-drink-a-sip, cider-user-first-name). All data + trivial random selectors, nothing to do with general utilities.

Move that block to its own cider-inspiration.el.

Three modules consume these:

  • cider.elcider-random-words-of-inspiration (default for cider-connection-message-fn) and cider-random-tip
  • cider-mode.el and cider-repl.elcider-drink-a-sip (referenced in keybindings)

Each gets an explicit (require 'cider-inspiration). cider-util.el no longer carries this data.

cider-util.el: 905 → 742 lines. cider-inspiration.el: 203 lines.

(Also includes a small .gitignore change for .claude/ — unrelated, but bundled in this PR.)

  • Compiles clean with eldev compile --warnings-as-errors
  • All 547 tests pass (eldev test)
  • No CHANGELOG entry — pure refactor, no user-visible change

bbatsov added 2 commits May 13, 2026 12:39
cider-util.el is meant to be small cross-cutting utilities, but a
~160-line block at the bottom held the random connect-greeting quotes
(cider-words-of-inspiration) and the keybinding tips list (cider-tips),
plus the trivial pickers around them (cider-random-words-of-inspiration,
cider-inspire-me, cider-random-tip, cider-drink-a-sip,
cider-user-first-name).  All data + trivial random selectors, nothing
to do with general utilities.

Move that block to its own file.  Three modules consume these:

- cider.el calls cider-random-words-of-inspiration (default for
  cider-connection-message-fn) and cider-random-tip (via the docs).
- cider-mode.el and cider-repl.el reference cider-drink-a-sip in
  keybindings.

Each gets an explicit (require 'cider-inspiration); cider-util.el no
longer carries this data.

cider-util.el drops from 905 to 742 lines.  cider-inspiration.el is
203 lines.
@bbatsov bbatsov merged commit b446fee into master May 13, 2026
13 checks passed
@bbatsov bbatsov deleted the extract-inspiration branch May 13, 2026 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant