Browse Source

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`.
custom
fap 3 years ago
committed by Bozhidar Batsov
parent
commit
1727734002
  1. 1
      CHANGELOG.md
  2. 2
      init.el

1
CHANGELOG.md

@ -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)

2
init.el

@ -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))

Loading…
Cancel
Save