Initial Commit
[packages] / xemacs-packages / auctex / style / xspace.el
1 ;;; xspace.el --- AUCTeX style for `xspace.sty'
2
3 ;; Copyright (C) 2011 Free Software Foundation, Inc.
4
5 ;; Author: Mads Jensen <mje@inducks.org>
6 ;; Maintainer: auctex-devel@gnu.org
7 ;; Created: 2011-02-01
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 `xspace.sty'.
30
31 ;;; Code:
32
33 (TeX-add-style-hook
34  "xspace"
35  (lambda ()
36    (TeX-add-symbols
37     '("xspace" 0)
38     "xspaceaddexception"
39     "xspaceremoveexception")
40
41    ;; Fontification
42    (when (and (featurep 'font-latex)
43               (eq TeX-install-font-lock 'font-latex-setup))
44      (font-latex-add-keywords '(("xspace" "")
45                                 ("xspaceaddexception" "{")
46                                 ("xspaceremoveexception" "{"))
47                               'function)))
48  LaTeX-dialect)
49
50 (defvar LaTeX-xspace-package-options nil
51   "Package options for the xspace package.")
52
53 ;;; xspace.el ends here