Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Importing files in Emacs Lisp/Emacs configuration file in the same directory

Tags:

emacs

elisp

I have a couple of emacs configuration files. I was going to consolidate them down into a common file and then a couple other files that import the common file. Then have their own functions. I was just going to have them all as .emacsCommon in my home folder but when I write:

(require '.emacsCommon)

it doesn't load the function. What is the right way to do this??

Cheers

like image 498
J Spen Avatar asked Aug 31 '11 05:08

J Spen


1 Answers

Use 'load-file' to load a EmacsLisp file

(load-file "./.emacsCommon")

like image 135
tototoshi Avatar answered Oct 25 '22 21:10

tototoshi