aboutsummaryrefslogtreecommitdiff
path: root/init.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-08-26 12:21:29 -0600
committerCraig Jennings <c@cjennings.net>2026-08-26 12:21:29 -0600
commit0afff24b6e0e80bc5b83ab233ada822caef728a6 (patch)
tree0ee4611865738add12e6873dcda4c89a918fcbb6 /init.el
parent9b102d6fb23074bebc626bfe4e61c677c006ae37 (diff)
downloaddotemacs-0afff24b6e0e80bc5b83ab233ada822caef728a6.tar.gz
dotemacs-0afff24b6e0e80bc5b83ab233ada822caef728a6.zip
fix(init): declare malyon and 2048-game so a fresh machine installs them
a8571eff moved games-config behind with-eval-after-load 'malyon and deleted the two use-package forms, which were the only thing that ever installed malyon and 2048-game. The old elpa directories masked that until the 2026-08-13 reinstall rebuilt elpa from declarations and both packages came up absent. I declared them in init.el's entertainment section with :defer t and :commands, so use-package-always-ensure installs them while the module stays command-loaded. They live in init.el rather than games-config because that module only loads once malyon has, so it can't be what installs malyon. The new test checks that init.el declares both packages in forms use-package would install, and rejects :ensure nil and :load-path forms.
Diffstat (limited to 'init.el')
-rw-r--r--init.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/init.el b/init.el
index 1feb45dd..beb073ba 100644
--- a/init.el
+++ b/init.el
@@ -160,7 +160,12 @@
(require 'music-config)
;; games-config: deferred (load-graph Phase 4). malyon / 2048-game autoload
;; their own commands via package.el; games-config only supplies malyon's config,
-;; so load it when malyon loads rather than requiring it at startup.
+;; so load it when malyon loads rather than requiring it at startup. The two
+;; use-package forms exist so `use-package-always-ensure' installs the packages
+;; on a fresh machine: nothing else declares them, and a8571eff's removal left
+;; both absent after the 2026-08-13 reinstall. :defer t keeps them unloaded.
+(use-package malyon :defer t :commands (malyon))
+(use-package 2048-game :defer t :commands (2048-game))
(with-eval-after-load 'malyon (require 'games-config))
(require 'takuzu-config) ;; Takuzu (Binairo) puzzle on M-x takuzu; package in ~/code/takuzu