Search sample/prelude-modules.el in prelude-dir during init

If the user installed prelude to different directory
via the `PRELUDE_INSTALL_DIR` variable then the sample
file won't be found in the `user-emacs-directory`.
This commit is contained in:
fap 2022-10-16 04:35:41 +02:00 committed by Bozhidar Batsov
parent 4d7f1ff675
commit 1727734002
2 changed files with 2 additions and 1 deletions

View file

@ -27,6 +27,7 @@
* [#1335](https://github.com/bbatsov/prelude/issues/1335): Workaround
for `which-key` bug causing display issues in clients to `emacs --daemon`.
* Fix **Edit on GitHub** link in ReadTheDocs site.
* Fix fall back to sample `prelude-modules.el` not working if user has installed to non-default location.
## 1.1.0 (2021-02-14)

View file

@ -138,7 +138,7 @@ by Prelude.")
(message "[Prelude] Missing personal modules file %s" prelude-modules-file)
(message "[Prelude] Falling back to the bundled example file sample/prelude-modules.el")
(message "[Prelude] You should copy this file to your personal configuration folder and tweak it to your liking")
(load (expand-file-name "sample/prelude-modules.el" user-emacs-directory)))
(load (expand-file-name "sample/prelude-modules.el" prelude-dir)))
;; config changes made through the customize UI will be stored here
(setq custom-file (expand-file-name "custom.el" prelude-personal-dir))