GNU Emacs Lisp Reference Manual
This section describes what Emacs does when it is started, and how you can customize these actions.