diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-15 15:10:19 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-15 15:10:19 -0500 |
| commit | 243a18deb882531929a6833031825bb95d8c672d (patch) | |
| tree | 7fb3565163fd9d23712cacadd23b56f3bfcbac61 /tests/test-coverage-core--command.el | |
| parent | 882cc90716e752e2d6156fe2fe5e320dbbd945d5 (diff) | |
| download | dotemacs-243a18deb882531929a6833031825bb95d8c672d.tar.gz dotemacs-243a18deb882531929a6833031825bb95d8c672d.zip | |
feat(yas): activate yasnippet globally with fundamental-mode extras
The yasnippet use-package block switches from `:hook (prog-mode . yas-minor-mode)` to `:demand t` + `(yas-global-mode 1)`. That makes yas-minor-mode active in every buffer, not just prog-mode-derived ones.
I added a small helper, `cj/--yas-activate-fundamental-extras`, attached as `:hook (yas-minor-mode . ...)`. It calls `(yas-activate-extra-mode 'fundamental-mode)` so the snippet table at `snippets/fundamental-mode/` is consulted in every buffer regardless of the buffer's own major mode. That's what makes universal triggers like `<cj` work everywhere.
The new `tests/test-prog-general-yas-activation.el` covers both wiring (yas-global-mode on, fundamental-mode in yas-extra-modes, yas-minor-mode active in org/text buffers) and end-to-end expansion (the marker snippet expands correctly in fundamental, text, org, emacs-lisp, and python-ts modes). 9 tests, all green; full unit suite green with no regressions.
Diffstat (limited to 'tests/test-coverage-core--command.el')
0 files changed, 0 insertions, 0 deletions
