Next: , Up: The Basics   [Index]


6.2.1 find-file ‘C-x C-f

To open a file is to find or visit it. The two are synonymous. If the file does not exist, Emacs will open an empty buffer associated with that filename. If the file exists, Emacs will place the contents into a buffer associated with that filename.

Major Mode Load Order

When you visit a file, Emacs will pick a major mode. Emacs supports an array of detection mechanisms that can all be changed to suit your needs. They are listed here in the order they are applied.