summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-04-30 10:04:27 -0500
committerCraig Jennings <c@cjennings.net>2026-04-30 10:04:27 -0500
commit2e12131a3b593333f6c3113ec691eefa74011c6e (patch)
treeccfdd33197925bc98408e23fb1efeef473cdff62
parent467a6d63f44ba835a94e7580adff9ff6b2b1a1eb (diff)
downloaddotemacs-2e12131a3b593333f6c3113ec691eefa74011c6e.tar.gz
dotemacs-2e12131a3b593333f6c3113ec691eefa74011c6e.zip
feat(gloss): wire gloss into init via :vc against cjennings.net
Adds modules/gloss-config.el with a use-package form that installs gloss from the cjennings.net bare repo. The bare's post-receive hook mirrors to GitHub, so the package shows up in both places. Eager-loaded so gloss-prefix-map exists at startup. :config calls gloss-install-prefix to bind C-h g. Lands in the "Modules In Test" section of init.el for v1. Can move out after the first-week shakedown shows the package is steady.
-rw-r--r--init.el1
-rw-r--r--modules/gloss-config.el30
2 files changed, 31 insertions, 0 deletions
diff --git a/init.el b/init.el
index d13f3378..2cd1c0cb 100644
--- a/init.el
+++ b/init.el
@@ -158,6 +158,7 @@
(require 'lorem-optimum) ;; best fake latin text generator ever
(require 'jumper) ;; navigation help for large projects/lotsa buffers
(require 'system-commands) ;; reboot, logout, etc.
+(require 'gloss-config) ;; personal glossary on C-h g; v1 in shakedown
;; ---------------------------------- Wrap Up ----------------------------------
diff --git a/modules/gloss-config.el b/modules/gloss-config.el
new file mode 100644
index 00000000..a13d25b3
--- /dev/null
+++ b/modules/gloss-config.el
@@ -0,0 +1,30 @@
+;;; gloss-config.el --- Gloss personal-glossary configuration -*- lexical-binding: t; coding: utf-8; -*-
+;; author: Craig Jennings <c@cjennings.net>
+
+;;; Commentary:
+;;
+;; gloss — Glossary Lookup with Online-Sourced Selection.
+;;
+;; Personal glossary on `C-h g'. Looks up terms in a single git-tracked
+;; org file. On a local miss, fetches candidate definitions from
+;; Wiktionary and prompts to pick one. Same org file feeds `org-drill'
+;; for spaced-repetition study.
+;;
+;; v1 in shakedown. After a few weeks of real use, this module can move
+;; out of the "Modules In Test" section in init.el.
+
+;;; Code:
+
+(use-package gloss
+ :vc (:url "git@cjennings.net:gloss.git"
+ :branch "main"
+ :rev :newest)
+ :demand t
+ :commands (gloss-lookup gloss-add gloss-edit
+ gloss-fetch-online gloss-list-terms gloss-stats
+ gloss-reload gloss-drill-export gloss-toggle-debug)
+ :config
+ (gloss-install-prefix))
+
+(provide 'gloss-config)
+;;; gloss-config.el ends here