From 089bcc2912d90ea939ddf3fd1954a39d45453036 Mon Sep 17 00:00:00 2001 From: James Cherti <60946298+jamescherti@users.noreply.github.com> Date: Tue, 20 Aug 2024 14:14:02 -0400 Subject: [PATCH] Enforce the consistency of Emacs features --- early-init.el | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/early-init.el b/early-init.el index 3a61515..14440fc 100644 --- a/early-init.el +++ b/early-init.el @@ -71,6 +71,15 @@ ;; Set-language-environment sets default-input-method, which is unwanted. (setq default-input-method nil) +;; Some features that are not represented as packages can be found in +;; `features', but this can be inconsistent. The following enforce consistency: +(if (fboundp #'json-parse-string) + (push 'jansson features)) +(if (string-match-p "HARFBUZZ" system-configuration-features) ; no alternative + (push 'harfbuzz features)) +(if (bound-and-true-p module-file-suffix) + (push 'dynamic-modules features)) + ;;; Garbage collection ;; Garbage collection significantly affects startup times. This setting delays ;; garbage collection during startup but will be reset later.