monnier pushed a commit to branch externals/auctex in repository elpa. commit 107f0bf59572344b84bbb9fbdf29c3205f04b2af Author: Tassilo Horn <t...@gnu.org> 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 <t...@gnu.org> + + * 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 <t...@gnu.org> * 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 +@vindex 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 +@cindex 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}. -@item german -@itemx 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 -@samp{"'}). Typing @key{-} twice will insert @samp{"=}, three times -@samp{--}. +@item 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}. +@item german +@itemx 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 +@samp{"'}). Typing @key{-} twice will insert @samp{"=}, three times +@samp{--}. + @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