feat: Keep eln-cache out of my config directory.

For early-init reasons, we had to split part of syd-prelude.el out into a new
file, syd-constants.el.
This commit is contained in:
Madeleine Sydney
2025-01-15 16:56:12 -07:00
parent 386779ce9b
commit 778692c9e0
4 changed files with 24 additions and 9 deletions

View File

@@ -0,0 +1,13 @@
;;; syd-constants.el -*- lexical-binding: t; -*-
(defvar syd-data-dir
(or (getenv "EMACS_DATA_DIR")
(error "Need $EMACS_DATA_DIR"))
"Directory analogous to XDG_DATA_HOME for miscellaneous Emacs things.")
(defvar syd-cache-dir
(or (getenv "EMACS_CACHE_DIR")
(error "Need $EMACS_CACHE_DIR")))
(provide 'syd-constants)
;;; syd-constants.el ends here

View File

@@ -2,14 +2,7 @@
(eval-when-compile (require 'cl-lib))
(defvar syd-data-dir
(or (getenv "EMACS_DATA_DIR")
(error "Need $EMACS_DATA_DIR"))
"Directory analogous to XDG_DATA_HOME for miscellaneous Emacs things.")
(defvar syd-cache-dir
(or (getenv "EMACS_CACHE_DIR")
(error "Need $EMACS_CACHE_DIR")))
(require 'syd-constants)
(cl-defmacro syd-define-stub
(name &key (desc "implement me!") interactive)