1 ;;; icelandic.el --- AUCTeX style for the `icelandic' babel option.
3 ;; Copyright (C) 2007 Free Software Foundation, Inc.
5 ;; Author: Ralf Angeli <angeli@caeruleus.net>
6 ;; Maintainer: auctex-devel@gnu.org
10 ;; This file is part of AUCTeX.
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)
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.
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
29 ;; Set up AUCTeX for editing Icelandic text in connection with the
30 ;; `icelandic' babel option.
34 (defvar LaTeX-icelandic-mode-syntax-table
35 (copy-syntax-table LaTeX-mode-syntax-table)
36 "Syntax table used in LaTeX mode when using `icelandic.sty'.")
38 (modify-syntax-entry ?\" "w" LaTeX-icelandic-mode-syntax-table)
43 (set-syntax-table LaTeX-icelandic-mode-syntax-table)
44 (setq TeX-quote-language '("icelandic" "\"`" "\"'" t))
45 (setq LaTeX-babel-hyphen-language "icelandic")
46 ;; Fontification of quotation marks.
47 (when (fboundp 'font-latex-add-quotes)
48 (font-latex-add-quotes '("\"`" "\"'"))
49 (font-latex-add-quotes '("\"<" "\">" french)))
50 (run-hooks 'TeX-language-is-hook)))
52 ;;; icelandic.el ends here