Initial Commit
[packages] / xemacs-packages / auctex / style / polski.el
1 ;;; polski.el --- AUCTeX style for `polski.sty'.
2
3 ;; Copyright (C) 2007 Free Software Foundation, Inc.
4
5 ;; Author: Ralf Angeli <angeli@caeruleus.net>
6 ;; Maintainer: auctex-devel@gnu.org
7 ;; Created: 2007-01-11
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 ;; Set up AUCTeX for editing Polish text in connection with
30 ;; `polski.sty'.
31
32 ;;; Code:
33
34 (defvar LaTeX-polski-package-options
35   '("plmath" "nomathsymbols" "MeX" "T1" "QX" "OT1" "OT4" "prefixinginverb"
36     "noprefixinginverb" "roku" "r." "noroku")
37   "Package options for polski.sty.")
38
39 (TeX-add-style-hook
40  "polski"
41  (lambda ()
42    (TeX-add-symbols
43     ;; Dashes
44     "dywiz"
45     "pauza"
46     "ppauza")
47    ;; Quotation marks
48    (unless (eq (car TeX-quote-language) 'override)
49      (setq TeX-quote-language '("polski" ",," "''" t)))
50    ;; Fontification of quotation marks.
51    (when (fboundp 'font-latex-add-quotes)
52      (font-latex-add-quotes '(",," "''")))
53    (run-hooks 'TeX-language-pl-hook))
54  LaTeX-dialect)
55
56 ;;; polski.el ends here