Enforce the consistency of Emacs features

This commit is contained in:
James Cherti
2024-08-20 14:14:02 -04:00
parent 6cfb9b02c1
commit 089bcc2912

View File

@@ -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.