autocmd BufNewFile,BufRead *.txt setlocal ft=text
autocmd BufNewFile,BufRead mutt* setlocal ft=mail
autocmd BufNewFile,BufRead *.tex setlocal ft=tex
+autocmd BufNewFile,BufRead CMakeLists.txt setlocal ft=cmake
" Set options based on filetypes, overriding the filetype plugin/indent options
autocmd FileType text call WrapOn()
autocmd FileType mail setlocal textwidth=72
autocmd FileType tex call WrapOn()
autocmd FileType objc setlocal nocindent smartindent
+autocmd FileType cmake setlocal nowrap
" Don't automatically continue comments on new lines
"""autocmd BufNewFile,BufRead * setlocal formatoptions-=r