blob: 0ff01c809b1aa275462ef7e52b18ed95710fb997 (
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
33
34
|
;;; 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
(defvar malyon-stories-directory)
(with-eval-after-load 'malyon
(setq malyon-stories-directory (concat org-dir "text.games/")))
(provide 'games-config)
;;; games-config.el ends here.
|