]> code.delx.au - gnu-emacs-elpa/blob - packages/auctex-11.86/style/makeidx.el
3425e49f51b1a721fd69409de2f96cfc9819693e
[gnu-emacs-elpa] / packages / auctex-11.86 / style / makeidx.el
1 ;;; makeidx.el --- AUCTeX support for makeidx.sty
2
3 ;; Copyright (C) 1999 Free Software Foundation, Inc.
4
5 ;; Author: Carsten Dominik <dominik@strw.leidenuniv.nl>
6 ;; Maintainer: auctex-devel@gnu.org
7
8 ;; This file is part of AUCTeX.
9
10 ;; AUCTeX is free software; you can redistribute it and/or modify it
11 ;; under the terms of the GNU General Public License as published by
12 ;; the Free Software Foundation; either version 3, or (at your option)
13 ;; any later version.
14
15 ;; AUCTeX is distributed in the hope that it will be useful, but
16 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 ;; General Public License for more details.
19
20 ;; You should have received a copy of the GNU General Public License
21 ;; along with AUCTeX; see the file COPYING. If not, write to the Free
22 ;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
23 ;; 02110-1301, USA.
24
25 ;;; Code:
26
27 (TeX-add-style-hook "makeidx"
28 (lambda ()
29 (TeX-add-symbols
30 "printindex" "indexspace")
31
32 ;; Parsing the default index macro is defined in latex.el
33 ;; The same is true form completion in the index macro
34
35 ;; Completion for the |see macro
36 (setq TeX-complete-list
37 (append
38 '(("|see{\\([^{}\n\r]*\\)" 1 LaTeX-index-entry-list))
39 TeX-complete-list))
40
41 ;; RefTeX support
42 (and (fboundp 'reftex-add-index-macros)
43 (reftex-add-index-macros '(default)))))
44
45 (defvar LaTeX-makeidx-package-options nil
46 "Package options for the makeidx package.")
47
48 ;;; makeidx.el ends here