1 |
;;; alltt.el --- AUCTeX style for `alltt.sty' |
;;; alltt.el --- AUCTeX style for `alltt.sty' |
2 |
|
|
3 |
;; Copyright (C) 2004 Free Software Foundation, Inc. |
;; Copyright (C) 2004, 2005 Free Software Foundation, Inc. |
4 |
|
|
5 |
;; Author: Ralf Angeli <angeli@iwi.uni-sb.de> |
;; Author: Ralf Angeli <angeli@iwi.uni-sb.de> |
6 |
;; Maintainer: auctex-devel@gnu.org |
;; Maintainer: auctex-devel@gnu.org |
39 |
'("alltt" current-indentation)) |
'("alltt" current-indentation)) |
40 |
(make-local-variable 'LaTeX-verbatim-regexp) |
(make-local-variable 'LaTeX-verbatim-regexp) |
41 |
(setq LaTeX-verbatim-regexp (concat LaTeX-verbatim-regexp "\\|alltt")) |
(setq LaTeX-verbatim-regexp (concat LaTeX-verbatim-regexp "\\|alltt")) |
42 |
|
(add-to-list 'LaTeX-verbatim-environments-local "alltt") |
43 |
;; Fontification |
;; Fontification |
44 |
(when (and (featurep 'font-latex) |
(when (and (featurep 'font-latex) |
45 |
(eq TeX-install-font-lock 'font-latex-setup)) |
(eq TeX-install-font-lock 'font-latex-setup)) |
46 |
(add-to-list 'font-latex-verbatim-environments-local "alltt") |
;; For syntactic fontification, e.g. verbatim constructs. |
47 |
(font-latex-set-syntactic-keywords) |
(font-latex-set-syntactic-keywords) |
48 |
;; Tell font-lock about the update. |
;; Tell font-lock about the update. |
49 |
(setq font-lock-set-defaults nil) |
(setq font-lock-set-defaults nil) |