summaryrefslogtreecommitdiff
path: root/elpa/auctex-13.1.3/style/plfonts.el
diff options
context:
space:
mode:
authormattkae <mattkae@protonmail.com>2022-05-17 07:07:37 -0400
committermattkae <mattkae@protonmail.com>2022-05-17 07:07:37 -0400
commitbecff06c71d277647eda4378203d03ab36e141eb (patch)
treea1f73bba3676f34e0faf76764f5de963321f5576 /elpa/auctex-13.1.3/style/plfonts.el
parent3f4a0d5370ae6c34afe180df96add3b8522f4af1 (diff)
Evil mode and latex support
Diffstat (limited to 'elpa/auctex-13.1.3/style/plfonts.el')
-rw-r--r--elpa/auctex-13.1.3/style/plfonts.el34
1 files changed, 34 insertions, 0 deletions
diff --git a/elpa/auctex-13.1.3/style/plfonts.el b/elpa/auctex-13.1.3/style/plfonts.el
new file mode 100644
index 0000000..51c0a81
--- /dev/null
+++ b/elpa/auctex-13.1.3/style/plfonts.el
@@ -0,0 +1,34 @@
+;;; plfonts.el - Setup AUC TeX for editing Polish text with plfonts.sty -*- lexical-binding: t; -*-
+
+;;; Commentary:
+;;
+;; `plfonts.sty' use `"' to make next character Polish.
+;; `plfonts.sty' <C> L. Holenderski, IIUW, lhol@mimuw.edu.pl
+
+;;; Code:
+
+(require 'tex)
+(require 'latex)
+
+(defvar LaTeX-plfonts-mode-syntax-table
+ (copy-syntax-table LaTeX-mode-syntax-table)
+ "Syntax table used in LaTeX mode when using `plfonts.sty'.")
+
+(modify-syntax-entry ?\" "w" LaTeX-plfonts-mode-syntax-table)
+
+(TeX-add-style-hook
+ "plfonts"
+ (lambda ()
+ (set-syntax-table LaTeX-plfonts-mode-syntax-table)
+ (make-local-variable 'TeX-open-quote)
+ (make-local-variable 'TeX-close-quote)
+ (make-local-variable 'TeX-quote-after-quote)
+ (make-local-variable 'TeX-command-default)
+ (setq TeX-open-quote "\"<")
+ (setq TeX-close-quote "\">")
+ (setq TeX-quote-after-quote t)
+ (setq TeX-command-default "plLaTeX")
+ (run-hooks 'TeX-language-pl-hook))
+ TeX-dialect)
+
+;;; plfonts.el ends here