From 401a5aa5304cf83240d66afdc2fdac58ead2a2e8 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 14 Aug 2022 16:08:17 +0200 Subject: [PATCH] refactor(docs): move doom-docs-dir to lib/docs.el This is not an essential core variable, so it should be defined where it used, instead. --- lisp/doom.el | 3 --- lisp/lib/docs.el | 4 ++++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lisp/doom.el b/lisp/doom.el index 6efdd52f7..1047e6a77 100644 --- a/lisp/doom.el +++ b/lisp/doom.el @@ -144,9 +144,6 @@ (defconst doom-modules-dir (expand-file-name "modules/" doom-emacs-dir) "The root directory for Doom's modules. Must end with a slash.") -(defconst doom-docs-dir (concat doom-emacs-dir "docs/") - "Where Doom's documentation files are stored. Must end with a slash.") - (defconst doom-user-dir (if-let (doomdir (getenv-internal "DOOMDIR")) (expand-file-name (file-name-as-directory doomdir)) diff --git a/lisp/lib/docs.el b/lisp/lib/docs.el index 81be7782f..8f59d668a 100644 --- a/lisp/lib/docs.el +++ b/lisp/lib/docs.el @@ -12,6 +12,10 @@ ;; ;;; Code: +;;;###autoload +(defvar doom-docs-dir (concat doom-emacs-dir "docs/") + "Where Doom's documentation files are stored. Must end with a slash.") + ;; DEPRECATED Will be renamed once docs "framework" is generalized (defvar doom-docs-header-alist `(("/docs/index\\.org$"