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)
|
||||
* 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
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…
Reference in a new issue