auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AUCTeX] Re: using .latex-files in AUCTeX


From: Christian Schlauer
Subject: [AUCTeX] Re: using .latex-files in AUCTeX
Date: Tue, 08 Nov 2005 19:45:29 +0100
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (windows-nt)

Jens Kubieziel <address@hidden> writes:

> I looked up the manual, searched, read my emacs book but couldn't find a
> working solution. Hope you can give me a hint:
> I writing some scripts together with other people. There is a convention
> that all LaTeX-files have the extension .latex. When I open those files
> in Emacs they are not recognised by AUCTeX (also font-locking doesn't
> work). What variable should I change that AUCTeX works also with those
> files?

,----[ C-h v auto-mode-alist RET ]
| auto-mode-alist's value is shown below.
| 
| Documentation:
| Alist of filename patterns vs corresponding major mode functions.
| Each element looks like (REGEXP . FUNCTION) or (REGEXP FUNCTION NON-NIL).
| (NON-NIL stands for anything that is not nil; the value does not matter.)
| Visiting a file whose name matches REGEXP specifies FUNCTION as the
| mode function to use.  FUNCTION will be called, unless it is nil.
| 
| If the element has the form (REGEXP FUNCTION NON-NIL), then after
| calling FUNCTION (if it's not nil), we delete the suffix that matched
| REGEXP and search the list again for another match.
| 
| Defined in `files'.
| 
| Value:
| (("\\.org$" . org-mode)
|  ("\\.css\\'" . css-mode)
| 
| [...]
| 
`----

I have in my .emacs

(add-to-list 'auto-mode-alist '("\\.org$" . org-mode))

to associate .org-files with org-mode, for example.
-- 
Christian Schlauer





reply via email to

[Prev in Thread] Current Thread [Next in Thread]