Browse Source

Fallback to the sample prelude-modules.el if missing

custom
Bozhidar Batsov 5 years ago
parent
commit
1793b8f270
  1. 1
      CHANGELOG.md
  2. 6
      init.el

1
CHANGELOG.md

@ -20,6 +20,7 @@
* Remove `prelude-fullscreen`, as these days people can use `toggle-frame-fullscreen` instead. (it was introduced in Emacs 24.4)
* Removed `beacon-mode`.
* Added `transient/` to `.gitignore`.
* Fallback to `sample/prelude-modules.el` in the absence of a `prelude-modules.el` in one's personal folder.
### Bugs fixed

6
init.el

@ -135,8 +135,10 @@ by Prelude.")
;; the modules
(if (file-exists-p prelude-modules-file)
(load prelude-modules-file)
(message "Missing modules file %s" prelude-modules-file)
(message "You can get started by copying the bundled example file from sample/prelude-modules.el"))
(message "Missing personal modules file %s" prelude-modules-file)
(message "Falling back to the bundled example file sample/prelude-modules.el")
(message "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)))
;; 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