mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
defcustom does some initialization work to accommodate the possibility that the user has set the variable before it was defined. This work is unneeded so early at startup, so I disable it (temporarily). In the future, Doom will use defcustom more, as it's a helpful indication to readers what variables I intended for configuration (and helps with discovery of options through `M-x doom/help-custom-variable` or `M-x customize`). As that transition occurs, the benefit of this optimization will begin to show, but for now its effect on startup time is negligible. * lisp/doom.el (warning-suppress-types): set this immediately. Since its default value is nil and this happens so early at startup, we don't have to be considerate of defaults. Plus, this custom-dont-initialize optimization can cause breakage if a warning is thrown *before* before this setting is changed.