(1) Emacs reads a number of init files, if they exists. The traditional file is named ~/.emacs
, i.e. it is named .emacs
and it is placed in the root of your home directory. On Unix-like operating system (which Mac OS X is), a file starting with a dot is hidden when listing the content of the directory with the command ls
. Nowadays, it is recommended to use the file ~/.emacs.d/init.el
, as this would allow you to archive the entire .emacs.d
directory in a version control system.
(2) Yes, the content is assumed to be Emacs Lisp (or elisp, for short). The file is evaluated one lisp expression at a time. Normally, things can be placed in any order, as long they do not have anything to do with each other.
(3) The parentheses are a part of the list syntax. A function call is written like (my-function argument-1 argument-2)
. In this case load
is the function you call to load the file into Emacs. Often, of course, it's better to defer the actual loading of the file until it actually is used, you can do this with the function autoload
.