[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 221/299: Add an english style.
From: |
Stefan Monnier |
Subject: |
[elpa] 221/299: Add an english style. |
Date: |
Sun, 02 Nov 2014 03:11:34 +0000 |
monnier pushed a commit to branch externals/auctex
in repository elpa.
commit 107f0bf59572344b84bbb9fbdf29c3205f04b2af
Author: Tassilo Horn <address@hidden>
Date: Mon Feb 10 08:56:53 2014 +0100
Add an english style.
* style/english.el: New style for english documents so that
`TeX-language-en-hook' gets run.
* Makefile.in (STYLESRC): Activate it.
* doc/auctex.texi (languages): Document it.
---
ChangeLog | 9 +++++++++
Makefile.in | 2 +-
doc/auctex.texi | 19 ++++++++++++-------
style/english.el | 10 ++++++++++
4 files changed, 32 insertions(+), 8 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index c33cd2b..f5daeb8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2014-02-10 Tassilo Horn <address@hidden>
+
+ * style/english.el: New style for english documents so that
+ `TeX-language-en-hook' gets run.
+
+ * Makefile.in (STYLESRC): Activate it.
+
+ * doc/auctex.texi (languages): Document it.
+
2014-02-04 Tassilo Horn <address@hidden>
* tex.el (TeX-auto-add-type): Convert to macro.
diff --git a/Makefile.in b/Makefile.in
index 730a3e2..3f463a7 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -133,7 +133,7 @@ STYLESRC = style/prosper.el \
style/array.el style/kpfonts.el style/acro.el \
style/acronym.el style/xparse.el style/fancyvrb.el \
style/tabulary.el style/fontspec.el style/unicode-math.el \
- style/luacode.el style/metalogo.el
+ style/luacode.el style/metalogo.el style/english.el
STYLEELC = $(STYLESRC:.el=.elc)
CLEANFILES = $(AUCELC) $(STYLEELC) $(MULEELC)
diff --git a/doc/auctex.texi b/doc/auctex.texi
index aa5387c..ce87075 100644
--- a/doc/auctex.texi
+++ b/doc/auctex.texi
@@ -3687,6 +3687,7 @@ The following style files are recognized:
@vindex TeX-language-bg-hook
@vindex TeX-language-cz-hook
@vindex TeX-language-dk-hook
address@hidden TeX-language-en-hook
@vindex TeX-language-nl-hook
@vindex TeX-language-de-hook
@vindex TeX-language-it-hook
@@ -3699,6 +3700,7 @@ The following style files are recognized:
@cindex Italian
@cindex Danish
@cindex Dutch
address@hidden English
@cindex German
@cindex Polish
@cindex Slovak
@@ -3727,13 +3729,8 @@ in the composing words.
@item dutch
Runs style hook @code{TeX-language-nl-hook}.
address@hidden german
address@hidden ngerman
-Runs style hook @code{TeX-language-de-hook}. Gives @samp{"} word
-syntax, makes the @key{"} key insert a literal @samp{"}. Pressing the
-key twice will give you opening or closing German quotes (@samp{"`} or
address@hidden"'}). Typing @key{-} twice will insert @samp{"=}, three times
address@hidden
address@hidden english
+Runs style hook @code{TeX-language-en-hook}.
@item frenchb
@itemx francais
@@ -3742,6 +3739,14 @@ insert @samp{\\og} and @samp{\\fg} depending on context.
Note that the
language name for customizing @code{TeX-quote-language-alist} is
@samp{french}.
address@hidden german
address@hidden ngerman
+Runs style hook @code{TeX-language-de-hook}. Gives @samp{"} word
+syntax, makes the @key{"} key insert a literal @samp{"}. Pressing the
+key twice will give you opening or closing German quotes (@samp{"`} or
address@hidden"'}). Typing @key{-} twice will insert @samp{"=}, three times
address@hidden
+
@item icelandic
Runs style hook @code{TeX-language-is-hook}. Gives @samp{"} word
syntax, makes the @key{"} key insert a literal @samp{"}. Typing @key{"}
diff --git a/style/english.el b/style/english.el
new file mode 100644
index 0000000..f385a24
--- /dev/null
+++ b/style/english.el
@@ -0,0 +1,10 @@
+;;; english.el --- Setup AUCTeX for editing English text.
+
+;;; Code:
+
+(TeX-add-style-hook
+ "english"
+ (lambda ()
+ (run-hooks 'TeX-language-en-hook)))
+
+;;; english.el ends here
- [elpa] 211/299: Adapt style/babel.el to babel 3.9., (continued)
- [elpa] 211/299: Adapt style/babel.el to babel 3.9., Stefan Monnier, 2014/11/01
- [elpa] 210/299: Make search for \begin and \end case sensitive., Stefan Monnier, 2014/11/01
- [elpa] 214/299: Fix syntactic fontification., Stefan Monnier, 2014/11/01
- [elpa] 215/299: Declare LaTeX-shortvrb-chars as safe local variable., Stefan Monnier, 2014/11/01
- [elpa] 212/299: Distinguish between numbered and unnumbered sections., Stefan Monnier, 2014/11/01
- [elpa] 216/299: Add a ^L so that the file local variable example isn't picked up., Stefan Monnier, 2014/11/01
- [elpa] 217/299: Use default parameter of completing-read., Stefan Monnier, 2014/11/01
- [elpa] 218/299: Use default parameter of `completing-read'., Stefan Monnier, 2014/11/01
- [elpa] 213/299: *** empty log message ***, Stefan Monnier, 2014/11/01
- [elpa] 219/299: Add WHEN arg to make-obsolete calls, Stefan Monnier, 2014/11/01
- [elpa] 221/299: Add an english style.,
Stefan Monnier <=
- [elpa] 220/299: Convert TeX-auto-add-type to a macro., Stefan Monnier, 2014/11/01
- [elpa] 222/299: New variable to pass options to the TeX processor., Stefan Monnier, 2014/11/01
- [elpa] 224/299: Fix selection of default environment in LaTeX-environment., Stefan Monnier, 2014/11/01
- [elpa] 225/299: Fix minor documentation bug., Stefan Monnier, 2014/11/01
- [elpa] 229/299: Advice instead of fset + redefine., Stefan Monnier, 2014/11/01
- [elpa] 228/299: Squash a byte-compiler warning., Stefan Monnier, 2014/11/01
- [elpa] 226/299: Improve defaults for filling., Stefan Monnier, 2014/11/01
- [elpa] 230/299: Fix bug causing endless package queries., Stefan Monnier, 2014/11/01
- [elpa] 232/299: Fix some FIXMEs., Stefan Monnier, 2014/11/01
- [elpa] 223/299: Prompt for packages inside LaTeX-env-document., Stefan Monnier, 2014/11/01