[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
main 8eca45c8 078/257: Merge branch 'master' into elpa
From: |
Tassilo Horn |
Subject: |
main 8eca45c8 078/257: Merge branch 'master' into elpa |
Date: |
Fri, 19 Apr 2024 15:36:28 -0400 (EDT) |
branch: main
commit 8eca45c8026369cffcd6a730ee52a1b5acf3a5f0
Merge: 51c45b03 a7c67570
Author: Tassilo Horn <tsdh@gnu.org>
Commit: Tassilo Horn <tsdh@gnu.org>
Merge branch 'master' into elpa
---
doc/auctex.texi | 29 +++++++++++++++++++++++++++++
tex-wizard.el | 8 ++++----
2 files changed, 33 insertions(+), 4 deletions(-)
diff --git a/doc/auctex.texi b/doc/auctex.texi
index afb0c9e6..80014d91 100644
--- a/doc/auctex.texi
+++ b/doc/auctex.texi
@@ -164,6 +164,7 @@ Controlling Screen Display
* Folding:: Folding Macros and Environments
* Outline:: Outlining the Document
* Narrowing:: Restricting display and editing to a portion
of the buffer
+* Prettifying:: Displaying Greek and math macros as Unicode
characters
Font Locking
@@ -1810,11 +1811,15 @@ Moreover, you can focus in a specific portion of the
code by narrowing
the buffer to the desired region. @AUCTeX{} provides also functions to
narrow the buffer to the current group and to @LaTeX{} environments.
+Lastly, @AUCTeX{} with Emacs 25 or later can display certain math macros
+using Unicode characters. That's called prettification.
+
@menu
* Font Locking:: Font Locking
* Folding:: Folding Macros and Environments
* Outline:: Outlining the Document
* Narrowing:: Restricting display and editing to a portion
of the buffer
+* Prettifying:: Displaying Greek and math macros as Unicode
characters
@end menu
@node Font Locking
@@ -2578,6 +2583,30 @@ disabled. Attempting to use them asks for confirmation
and gives you
the option of enabling them; if you enable the commands, confirmation
will no longer be required for them.
+@node Prettifying
+@section Prettifying
+
+Emacs 25 is able to prettify symbols in programming language buffers,
+@pxref{Misc for Programs,,,emacs,GNU Emacs Manual}. The canonical
+example is to display @code{(lambda () ...)} as @code{(λ () ...)} in
+Lisp buffers.
+
+@AUCTeX{} can use this feature in order to display certain math macros
+and greek letters using their Unicode representation, too. For example,
+the @TeX{} code @code{\alpha \times \beta} will be displayed as @code{α
+× β}. When point is on one of the characters, it'll be unprettified
+automatically, meaning you see the verbatim text again.
+
+To enable prettification in @AUCTeX, simply add
+@code{prettify-symbols-mode} to @code{TeX-mode-hook}. If you enabled
+prettification globally with @code{global-prettify-symbols-mode}, then
+it's automatically enabled in @AUCTeX, too.
+
+You can also add custom symbol unicode-character pairs for
+prettification by adding to @code{tex--prettify-symbols-alist}. Note
+that this variable is part of Emacs' stock @code{tex-mode.el} and used
+by that and @AUCTeX{}.
+
@node Processing
@chapter Starting Processors, Viewers and Other Programs
diff --git a/tex-wizard.el b/tex-wizard.el
index f5badae7..b51c03a3 100644
--- a/tex-wizard.el
+++ b/tex-wizard.el
@@ -1,6 +1,6 @@
;;; tex-wizard.el --- Check the TeX configuration
-;; Copyright (C) 2003 Free Software Foundation, Inc.
+;; Copyright (C) 2003, 2006, 2016 Free Software Foundation, Inc.
;; Author: David Kastrup <dak@gnu.org>
;; Keywords: tex, wp, convenience
@@ -90,7 +90,7 @@ and bibliographics references.\n")
(boundp 'LaTeX-mode-hook)
(memq 'turn-on-reftex LaTeX-mode-hook))
(if (and (boundp 'reftex-plug-into-AUCTeX)
- reftex-plug-into-AUCTeX)
+ reftex-plug-into-AUCTeX)
(insert-before-markers
"RefTeX appears to be configured for use with AUCTeX.\n")
(require 'reftex)
@@ -99,8 +99,8 @@ It appears that RefTeX is not configured to cooperate with
AUCTeX. Please configure it using the menus, save for future
sessions, then press the finish button.")
(customize-variable-other-window 'reftex-plug-into-AUCTeX)
- (set (make-local-variable 'custom-buffer-done-function)
- (lambda (buff) (kill-buffer buff) (exit-recursive-edit)))
+ (set (make-local-variable 'custom-buffer-done-kill) t)
+ (add-hook 'kill-buffer-hook #'exit-recursive-edit nil t)
(recursive-edit)
(select-window wizwin)
(switch-to-buffer wizbuf))))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- main 8eca45c8 078/257: Merge branch 'master' into elpa,
Tassilo Horn <=