Fallback to the sample prelude-modules.el if missing
This commit is contained in:
parent
8165d7b61a
commit
1793b8f270
2 changed files with 5 additions and 2 deletions
|
@ -20,6 +20,7 @@
|
||||||
* Remove `prelude-fullscreen`, as these days people can use `toggle-frame-fullscreen` instead. (it was introduced in Emacs 24.4)
|
* Remove `prelude-fullscreen`, as these days people can use `toggle-frame-fullscreen` instead. (it was introduced in Emacs 24.4)
|
||||||
* Removed `beacon-mode`.
|
* Removed `beacon-mode`.
|
||||||
* Added `transient/` to `.gitignore`.
|
* 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
|
### Bugs fixed
|
||||||
|
|
||||||
|
|
6
init.el
6
init.el
|
@ -135,8 +135,10 @@ by Prelude.")
|
||||||
;; the modules
|
;; the modules
|
||||||
(if (file-exists-p prelude-modules-file)
|
(if (file-exists-p prelude-modules-file)
|
||||||
(load prelude-modules-file)
|
(load prelude-modules-file)
|
||||||
(message "Missing modules file %s" prelude-modules-file)
|
(message "Missing personal modules file %s" prelude-modules-file)
|
||||||
(message "You can get started by copying the bundled example file from sample/prelude-modules.el"))
|
(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
|
;; config changes made through the customize UI will be stored here
|
||||||
(setq custom-file (expand-file-name "custom.el" prelude-personal-dir))
|
(setq custom-file (expand-file-name "custom.el" prelude-personal-dir))
|
||||||
|
|
Loading…
Reference in a new issue