]> code.delx.au - gnu-emacs-elpa/blob - packages/auctex-11.86/style/alltt.el
(debbugs-emacs): New function and modes for listing the Emacs bugs, reading them...
[gnu-emacs-elpa] / packages / auctex-11.86 / style / alltt.el
1 ;;; alltt.el --- AUCTeX style for `alltt.sty'
2
3 ;; Copyright (C) 2004, 2005 Free Software Foundation, Inc.
4
5 ;; Author: Ralf Angeli <angeli@iwi.uni-sb.de>
6 ;; Maintainer: auctex-devel@gnu.org
7 ;; Created: 2004-04-30
8 ;; Keywords: tex
9
10 ;; This file is part of AUCTeX.
11
12 ;; AUCTeX is free software; you can redistribute it and/or modify it
13 ;; under the terms of the GNU General Public License as published by
14 ;; the Free Software Foundation; either version 3, or (at your option)
15 ;; any later version.
16
17 ;; AUCTeX is distributed in the hope that it will be useful, but
18 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
19 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 ;; General Public License for more details.
21
22 ;; You should have received a copy of the GNU General Public License
23 ;; along with AUCTeX; see the file COPYING. If not, write to the Free
24 ;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
25 ;; 02110-1301, USA.
26
27 ;;; Commentary:
28
29 ;; This file adds support for `alltt.sty'.
30
31 ;;; Code:
32
33 (TeX-add-style-hook
34 "alltt"
35 (lambda ()
36 (LaTeX-add-environments "alltt")
37 (make-local-variable 'LaTeX-indent-environment-list)
38 (add-to-list 'LaTeX-indent-environment-list
39 '("alltt" current-indentation))
40 (make-local-variable 'LaTeX-verbatim-regexp)
41 (setq LaTeX-verbatim-regexp (concat LaTeX-verbatim-regexp "\\|alltt"))
42 (add-to-list 'LaTeX-verbatim-environments-local "alltt")
43 ;; Fontification
44 (when (and (featurep 'font-latex)
45 (eq TeX-install-font-lock 'font-latex-setup))
46 ;; For syntactic fontification, e.g. verbatim constructs.
47 (font-latex-set-syntactic-keywords)
48 ;; Tell font-lock about the update.
49 (setq font-lock-set-defaults nil)
50 (font-lock-set-defaults))))
51
52 (defvar LaTeX-alltt-package-options nil
53 "Package options for the alltt package.")
54
55 ;;; alltt.el ends here