aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorEli Zaretskii2015-12-12 13:51:21 +0200
committerEli Zaretskii2015-12-12 13:51:21 +0200
commit3e14bdab52d648afb32f7453740de43179a5157c (patch)
tree2ef41d9143a633aba96ea05d53cf82a23e0317a3 /doc
parent5cc4f33b4ad0de0024c11ec41bcefcab34493efb (diff)
downloademacs-3e14bdab52d648afb32f7453740de43179a5157c.tar.gz
emacs-3e14bdab52d648afb32f7453740de43179a5157c.zip
Document new features of Prettify Mode
* doc/emacs/programs.texi (Misc for Programs): Document 'prettify-symbols-compose-predicate' and 'prettify-symbols-unprettify-at-point'. * lisp/progmodes/prog-mode.el (prettify-symbols-alist) (prettify-symbols-default-compose-p) (prettify-symbols-compose-predicate) (prettify-symbols--compose-symbol): Doc fixes.
Diffstat (limited to 'doc')
-rw-r--r--doc/emacs/programs.texi23
1 files changed, 15 insertions, 8 deletions
diff --git a/doc/emacs/programs.texi b/doc/emacs/programs.texi
index f9d9a27e8e2..bfc991b84c3 100644
--- a/doc/emacs/programs.texi
+++ b/doc/emacs/programs.texi
@@ -1498,14 +1498,21 @@ with the Foldout package (@pxref{Foldout}).
1498 1498
1499@findex prettify-symbols-mode 1499@findex prettify-symbols-mode
1500 Prettify Symbols mode is a buffer-local minor mode that replaces 1500 Prettify Symbols mode is a buffer-local minor mode that replaces
1501certain strings with more attractive versions for display 1501certain strings with more attractive versions for display purposes.
1502purposes. For example, in Emacs Lisp mode, it replaces the string 1502For example, in Emacs Lisp mode, it replaces the string @samp{lambda}
1503@samp{lambda} with the Greek lambda character @samp{λ}. You may wish 1503with the Greek lambda character @samp{λ}. You may wish to use this in
1504to use this 1504non-programming modes as well. You can customize the mode by adding
1505in non-programming modes as well. You can customize the mode by 1505more entries to @code{prettify-symbols-alist}. More elaborate
1506adding more entries to @code{prettify-symbols-alist}. There is also a 1506customization is available via customizing
1507global version, @code{global-prettify-symbols-mode}, which enables the 1507@code{prettify-symbols-compose-predicate} if its default value
1508mode in all buffers that support it. 1508@code{prettify-symbols-default-compose-p} is not appropriate. There
1509is also a global version, @code{global-prettify-symbols-mode}, which
1510enables the mode in all buffers that support it.
1511
1512 The symbol at point can be shown in its original form. This is
1513controlled by the variable @code{prettify-symbols-unprettify-at-point}:
1514if non-@code{nil}, the original form of symbol at point will be
1515restored for as long as point is at it.
1509 1516
1510 1517
1511@node C Modes 1518@node C Modes