aboutsummaryrefslogtreecommitdiff
path: root/modules/games-config.el
blob: aa26d31eed898ff0436714e6f725abb42e564b80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
;;; games-config.el --- emacs games -*- lexical-binding: t; coding: utf-8; -*-
;; author Craig Jennings <c@cjennings.net>
;;
;;; Commentary:
;;
;; Layer: 4 (Optional).
;; Category: O.
;; Load shape: command (deferred).
;; Eager reason: none; loaded by init.el when malyon loads.
;; Top-level side effects: sets malyon-stories-directory after malyon loads.
;; Runtime requires: user-constants.
;; Direct test load: yes.
;;
;; Configuration for game packages.
;;
;; - Malyon: interactive fiction / Z-machine player (stories under ~/sync/org/text.games/).
;; - 2048: number-tile puzzle.
;;
;; malyon and 2048-game autoload their own commands via package.el, so this
;; module owns neither command -- it only supplies malyon's stories directory.
;; init.el loads it via `with-eval-after-load 'malyon', so it loads on first
;; use rather than at startup.
;;
;;; Code:

(require 'user-constants)  ;; org-dir

(with-eval-after-load 'malyon
  (setq malyon-stories-directory (concat org-dir "text.games/")))

(provide 'games-config)
;;; games-config.el ends here.