auctex-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AUCTeX-diffs] GNU AUCTeX branch, master, updated. 30be9cca33b2dc810cb2e


From: Tassilo Horn
Subject: [AUCTeX-diffs] GNU AUCTeX branch, master, updated. 30be9cca33b2dc810cb2eeef214980734f5751b1
Date: Mon, 24 Aug 2015 06:03:10 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU AUCTeX".

The branch, master has been updated
       via  30be9cca33b2dc810cb2eeef214980734f5751b1 (commit)
      from  40963e5f00d689045f3c707d1f293b929547ced2 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 30be9cca33b2dc810cb2eeef214980734f5751b1
Author: Tassilo Horn <address@hidden>
Date:   Mon Aug 24 08:02:54 2015 +0200

    Add support for prettify-symbols-mode
    
    * tex.el (VirTeX-common-initialization): Add support for
    `prettify-symbols-mode'.

diff --git a/ChangeLog b/ChangeLog
index 7201d85..99ceeb2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-08-24  Tassilo Horn  <address@hidden>
+
+       * tex.el (VirTeX-common-initialization): Add support for
+       `prettify-symbols-mode'.
+
 2015-08-21  Mosè Giordano  <address@hidden>
 
        * tex-buf.el (TeX-check-engine): New customizable variable.
diff --git a/tex.el b/tex.el
index 07fa371..eda7651 100644
--- a/tex.el
+++ b/tex.el
@@ -127,7 +127,7 @@ If nil, none is specified."
     ("LaTeX" "%`%l%(mode)%' %t"
      TeX-run-TeX nil
      (latex-mode doctex-mode) :help "Run LaTeX")
-       ;; Not part of standard TeX.
+    ;; Not part of standard TeX.
     ("Makeinfo" "makeinfo %(extraopts) %t" TeX-run-compile nil
      (texinfo-mode) :help "Run Makeinfo with Info output")
     ("Makeinfo HTML" "makeinfo %(extraopts) --html %t" TeX-run-compile nil
@@ -144,7 +144,7 @@ If nil, none is specified."
     ("BibTeX" "bibtex %s" TeX-run-BibTeX nil t :help "Run BibTeX")
     ("Biber" "biber %s" TeX-run-Biber nil t :help "Run Biber")
     ,(if (or window-system (getenv "DISPLAY"))
-       '("View" "%V" TeX-run-discard-or-function t t :help "Run Viewer")
+        '("View" "%V" TeX-run-discard-or-function t t :help "Run Viewer")
        '("View" "dvi2tty -q -w 132 %s" TeX-run-command t t
         :help "Run Text viewer"))
     ("Print" "%p" TeX-run-command t t :help "Print the file")
@@ -264,8 +264,8 @@ Any additional elements get just transferred to the 
respective menu entries."
 
 (defcustom TeX-command-output-list
   '(
-; Add the following line if you want to use htlatex (tex4ht)
-;    ("\\`htlatex" ("html"))
+                                       ; Add the following line if you want to 
use htlatex (tex4ht)
+                                       ;    ("\\`htlatex" ("html"))
     )
   "List of regexps and file extensions.
 
@@ -3438,6 +3438,16 @@ The algorithm is as follows:
   (when TeX-source-correlate-mode
     (TeX-source-correlate-mode 1))
 
+  ;; Prettify Symbols mode
+  (when (and (boundp 'tex--prettify-symbols-alist)
+            (boundp 'prettify-symbols-compose-predicate))
+    (set (make-local-variable 'prettify-symbols-alist) 
tex--prettify-symbols-alist)
+    (if (fboundp 'add-function)
+       (add-function :override (local 'prettify-symbols-compose-predicate)
+                     #'tex--prettify-symbols-compose-p)
+      (set (make-local-variable 'prettify-symbols-compose-predicate)
+          #'tex--prettify-symbols-compose-p)))
+
   ;; Let `TeX-master-file' be called after a new file was opened and
   ;; call `TeX-update-style' on any file opened.  (The addition to the
   ;; hook has to be made here because its local value will be deleted

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog |    5 +++++
 tex.el    |   18 ++++++++++++++----
 2 files changed, 19 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
GNU AUCTeX



reply via email to

[Prev in Thread] Current Thread [Next in Thread]