What failed for me?
(add-to-list 'load-path "~/.emacs.d/others")
what worked for me?
(mapc 'load (file-expand-wildcards "~/.emacs.d/others/*.el"))
Functions defined in elisp files lying @~/.emacs.d/others
were not loaded in the first case.
So, is it wrong to assume that adding folder paths to load-path
will load the *.el files lying underneath?
load
is not a good approach. Better update theload-path
as in the first snippet and then userequire
orautoload
as necessary. Better yet check out theuse-package
package; it will help make loading the packages more efficient.use-package
grants convenience while adding (small) overhead. I don't know if that can be classified as loading packages more efficiently.