I am making a list of common file extenders.

Dan_Jacobson at ATT.COM Dan_Jacobson at ATT.COM
Tue Mar 5 08:03:12 AEST 1991


>>>>> On 3 Mar 91 22:35:41 GMT, ksb at mentor.cc.purdue.edu (Kevin Braunsdorf) said:

Kevin> I'd like a canonical list of file extensions and their meanings under
Kevin> UNIX.

Well, here's GNU Emacs' default auto-mode-alist...

auto-mode-alist's value is
(
 ("\\.text$" . text-mode)
 ("\\.c$" . c-mode)
 ("\\.h$" . c-mode)
 ("\\.tex$" . TeX-mode)
 ("\\.el$" . emacs-lisp-mode)
 ("\\.scm$" . scheme-mode)
 ("\\.l$" . lisp-mode)
 ("\\.lisp$" . lisp-mode)
 ("\\.f$" . fortran-mode)
 ("\\.mss$" . scribe-mode)
 ("\\.pl$" . prolog-mode)
 ("\\.TeX$" . TeX-mode)
 ("\\.sty$" . LaTeX-mode)
 ("\\.bbl$" . LaTeX-mode)
 ("\\.bib$" . text-mode)
 ("\\.article$" . text-mode)
 ("\\.letter$" . text-mode)
 ("\\.texinfo$" . texinfo-mode)
 ("\\.lsp$" . lisp-mode)
 ("\\.prolog$" . prolog-mode)
 ("^/tmp/Re" . text-mode)
 ("^/tmp/fol/" . text-mode)
 ("/Message[0-9]*$" . text-mode)
 ("\\.y$" . c-mode)
 ("\\.cc$" . c-mode)
 ("\\.scm.[0-9]*$" . scheme-mode)
 ("[]>:/]\\..*emacs" . emacs-lisp-mode)
 ("\\.ml$" . lisp-mode)
)
 

Documentation:
Alist of filename patterns vs corresponding major mode functions.
Each element looks like (REGEXP . FUNCTION).
Visiting a file whose name matches REGEXP causes FUNCTION to be called.
-- 
Dan_Jacobson at ATT.COM  Naperville IL USA  +1 708 979 6364



More information about the Comp.unix.questions mailing list