Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • In general, the .emacs.d root directory is not automatically included within the load-path. A path to an *.el file is not usually used in conjunction with load-path, but instead is normally used in conjunction with load-file -- without using add-to-list. So those are likely your first two problems right off the bat.
    – lawlist
    Commented Oct 7, 2014 at 2:12
  • For example, you could use (load-file "~/.emacs.d/empty-void.el") (load-file "~/.emacs.d/color-theme.el") and then not even worry about the load-path. I've seen experienced Emacs users recommend setting up sub-directories in the .emacs.d folder, e.g., ~/.emacs.d/lisp -- and you can add that sub-directory to your load-path and put your *.el files inside it and then use something like (require '...) assuming of course that there is a (provide '....) statement at the bottom of each *.el file that you are seeking to require.
    – lawlist
    Commented Oct 7, 2014 at 2:21
  • Using load-file did the trick for me, thanks a lot! Commented Oct 7, 2014 at 12:24