Move prelude-modules.el
under personal
directory
Prelude modules are required by the definition file `prelude-modules.el`. This file should be part of personal configuration. Therefore: - implemented loading of `personal/prelude-modules.el` in favour of loading `prelude-modules.el`; - added a check for presence of both old and new files; - adjusted documentation; - adjusted the installer. Closes #1206.
This commit is contained in:
parent
d798ba4dc7
commit
454fade724
4 changed files with 28 additions and 14 deletions
utils
|
@ -202,7 +202,7 @@ then
|
|||
make_prelude_dirs
|
||||
# Reinstate files that weren't replaced
|
||||
tar --skip-old-files -xf "$PRELUDE_INSTALL_DIR_ORIG.pre-prelude.tar" "$PRELUDE_INSTALL_DIR" > /dev/null 2>&1
|
||||
[ -n "$PRELUDE_INTO" ] && cp "$PRELUDE_INSTALL_DIR/sample/prelude-modules.el" "$PRELUDE_INSTALL_DIR"
|
||||
[ -n "$PRELUDE_INTO" ] && cp "$PRELUDE_INSTALL_DIR/sample/prelude-modules.el" "$PRELUDE_INSTALL_DIR/personal"
|
||||
elif [ -e "$PRELUDE_INSTALL_DIR" ]
|
||||
then
|
||||
# File exist but not a regular file or directory
|
||||
|
@ -215,7 +215,7 @@ else
|
|||
# Nothing yet so just install prelude
|
||||
install_prelude
|
||||
make_prelude_dirs
|
||||
cp "$PRELUDE_INSTALL_DIR/sample/prelude-modules.el" "$PRELUDE_INSTALL_DIR"
|
||||
cp "$PRELUDE_INSTALL_DIR/sample/prelude-modules.el" "$PRELUDE_INSTALL_DIR/personal"
|
||||
fi
|
||||
|
||||
if [ -z "$PRELUDE_SKIP_BC" ];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue