When there is no custom-file specified, it defaults to init-file. Both must be loaded, so the init-file would be loaded twice. This only loads custom-file if it's different from init-file.
Here's what *Messages* looked like before:
Loading /home/league/.emacs-profiles/zuru/init.el (source)...
Hello, zuru!
Loading /home/league/.emacs-profiles/zuru/init.el (source)...done
Loading /home/league/.emacs-profiles/zuru/init.el (source)...
Hello, zuru!
Loading /home/league/.emacs-profiles/zuru/init.el (source)...done
For information about GNU Emacs and the GNU system, type C-h C-a.
Mark set
And I even added this to init.el to ensure that it wasn't just messaging twice for some reason:
When there is no
custom-file
specified, it defaults toinit-file
. Both must be loaded, so theinit-file
would be loaded twice. This only loadscustom-file
if it's different frominit-file
.Here's what
*Messages*
looked like before:And I even added this to init.el to ensure that it wasn't just messaging twice for some reason:
Upon startup, indeed
zuru-here
had the value2
. This PR fixes that, I also tested with custom-file set to something.