How can you import a new chunk of code (an Emacs lisp library) into your .emacs file?
I do not want to put everything into one huge .emacs file.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Put the file
google.elin a directory, say~/lisp, and then in your .emacs:If you want to add a directory and its sub-directories, you can check out the answers in this SO question.
And, as you add more and more
'requirelines, you’ll notice things slowing down on startup. At which point you’ll want to find out how to make Emacs start up faster I of course like my answer best.