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`.
Prelude is generally stored in ~/.emacs.d of the user who wants to
use it. But for a system wide install of prelude it does not make
sense for every user on the system to install it and link to it.
It is better in that case to install it in a global position like
/opt/prelude and put the following line in site-start.el file
(load "/opt/prelude/init.el")
Due to this change the local history and cache files of the
individual users get stored in their home directories instead
of trying to save it in prelude-dir
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.
`with-eval-after-load` was introduced in Emacs 24.4 and its
usage results in a cleaner code.
`eval-after-load` is considered ill-behaved because it is a function,
not a macro, and thus requires the code inside it to be quoted, which
means that it cannot be byte-compiled. It also accepts only one form,
so if you have more than one, you need to use `progn`.
More details - https://stackoverflow.com/questions/21880139/what-is-with-eval-after-load-in-emacs-lisp
* Modified the regex so prelude won't load any .el files that start with
a `.`, spefically for `.dir-locals.el`. This file does not play nice
with `load`
* Added a `personal/.dir-locals.el` to disable the flychecker
prelude-add-subfolders-to-load-path currently recurses into ".git"
directories for example. Seems reasonable to skip any "hidden"
directory prefixed with a "."