Skip to main content
edited title
Link
Saravana
  • 2.1k
  • 13
  • 32

*.el Elisp files in load-path are not loaded on emacs start

Source Link
Saravana
  • 2.1k
  • 13
  • 32

*.el files in load-path are not loaded

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?