Jens Kubieziel <[EMAIL PROTECTED]> 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



_______________________________________________
auctex mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/auctex

Reply via email to