From 233fd93b65db87b8ae197266f765ad32ea983e99 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 17 Apr 2021 18:07:19 -0400 Subject: [PATCH] Add custom-file trait & custom-vars list to doom/info So I can tell if users may have a custom.el where something may be inadvertently saved. --- core/autoload/debug.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/autoload/debug.el b/core/autoload/debug.el index e4c25bbd2..5e9424476 100644 --- a/core/autoload/debug.el +++ b/core/autoload/debug.el @@ -159,11 +159,19 @@ ready to be pasted in a bug report on github." 'symlinked-emacsdir) (if (file-symlink-p doom-private-dir) 'symlinked-doomdir) + (if (and (stringp custom-file) (file-exists-p custom-file)) + 'custom-file) (if (doom-files-in `(,@doom-modules-dirs ,doom-core-dir ,doom-private-dir) :type 'files :match "\\.elc$") 'byte-compiled-config))))) + (custom + ,@(when (and (stringp custom-file) + (file-exists-p custom-file)) + (cl-loop for (type var _) in (get 'user 'theme-settings) + if (eq type 'theme-value) + collect var))) (modules ,@(or (cl-loop with cat = nil for key being the hash-keys of doom-modules