mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-08 15:23:35 -05:00
Even when an `.elc` is preset `load-theme` would attempt to load the `.el` first, to give the opportunity to inspect the theme. However we are loading themes automatically from (M)ELPA, and loading a theme package is no more dangerous than loading a regular package. So override the search order for themes and atttempt to load the `.elc` first. This improves startup time by ~25ms with the default theme. Improved implementation by @hlissner. Signed-off-by: Edwin Török <edwin@etorok.net>