bbatsov / prelude

Prelude is an enhanced Emacs 25.1+ distribution that should make your experience with Emacs both more pleasant and more powerful.
https://prelude.emacsredux.com
5.1k stars 1.85k forks source link

Add custom .el files #1340

Open shakthimaan opened 3 years ago

shakthimaan commented 3 years ago

The documentation suggests to add .el files to personal which will be loaded. I have no-easy-keys.el in personal/ folder and added the following to custom.el:

(prelude-require-package 'no-easy-keys)

But, Prelude is not able to find the package. This question is similar to https://github.com/bbatsov/prelude/issues/1116.

The following works though, but, is there an alternative to using add-to-list 'load-path? I though all files in personal/ should be auto-loaded by Prelude by default?

(add-to-list 'load-path "~/.emacs.d/personal/")
(require 'no-easy-keys)
(no-easy-keys 1)
bbatsov commented 2 years ago
(prelude-require-package 'no-easy-keys)

That's only for remote packages. In your case I'm guessing you can just directly enable this mode, as Prelude does load on everything under personal (meaning you don't need to require).

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution and understanding!