Next: , Previous: Automatic line ends, Up: Line ends

5.6.2 CR/LF translation by file extension

The variable file-name-buffer-file-type-alist holds a list of filename patterns and their associated type; binary or text. Files marked as binary will not have line-end detection performed on them, and instead will always be displayed as is. With auto-detection in recent versions of Emacs, this is seldom useful for existing files, but can still be used to influence the choice of line ends for newly created files.