Add emacs version to autoloads file path

Prevents stale byte-code across Emacs versions.

Relevant to #4172
This commit is contained in:
Henrik Lissner 2020-10-28 05:17:02 -04:00
parent d784509abf
commit 9ce9c6838e
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -133,7 +133,8 @@ Use this for files that change often, like cache files. Must end with a slash.")
Defaults to ~/.config/doom, ~/.doom.d or the value of the DOOMDIR envvar;
whichever is found first. Must end in a slash.")
(defconst doom-autoloads-file (concat doom-local-dir "autoloads.el")
(defconst doom-autoloads-file
(concat doom-local-dir "autoloads." emacs-version ".el")
"Where `doom-reload-core-autoloads' stores its core autoloads.
This file is responsible for informing Emacs where to find all of Doom's