From 21b5d80814520540454c1167ca0495dd023c54dd Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Thu, 9 Jun 2022 09:16:50 -0500 Subject: Fix startup complaining --- lisp/+cus-edit.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lisp/+cus-edit.el') diff --git a/lisp/+cus-edit.el b/lisp/+cus-edit.el index 4631811..a67279c 100644 --- a/lisp/+cus-edit.el +++ b/lisp/+cus-edit.el @@ -33,6 +33,9 @@ (defcustom +custom-variable-allowlist nil "Variables to allow changing while loading the Custom file.") +(defcustom +custom-after-load-hook nil + "Functions to run after loading the custom file.") + (defun +custom-load-ignoring-most-customizations (&optional error nomessage @@ -55,7 +58,8 @@ pass t to it." (memq (car el) +custom-variable-allowlist)) args))))) - (load custom-file (not error) nomessage nosuffix must-suffix))) + (load custom-file (not error) nomessage nosuffix must-suffix)) + (run-hooks '+custom-after-load-hook)) (defun +cus-edit-expand-widgets (&rest _) "Expand descriptions in `Custom-mode' buffers." -- cgit 1.4.1-21-gabe81