diff options
| author | Eli Zaretskii | 2015-12-12 13:51:21 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2015-12-12 13:51:21 +0200 |
| commit | 3e14bdab52d648afb32f7453740de43179a5157c (patch) | |
| tree | 2ef41d9143a633aba96ea05d53cf82a23e0317a3 /doc | |
| parent | 5cc4f33b4ad0de0024c11ec41bcefcab34493efb (diff) | |
| download | emacs-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.texi | 23 |
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 |
| 1501 | certain strings with more attractive versions for display | 1501 | certain strings with more attractive versions for display purposes. |
| 1502 | purposes. For example, in Emacs Lisp mode, it replaces the string | 1502 | For example, in Emacs Lisp mode, it replaces the string @samp{lambda} |
| 1503 | @samp{lambda} with the Greek lambda character @samp{λ}. You may wish | 1503 | with the Greek lambda character @samp{λ}. You may wish to use this in |
| 1504 | to use this | 1504 | non-programming modes as well. You can customize the mode by adding |
| 1505 | in non-programming modes as well. You can customize the mode by | 1505 | more entries to @code{prettify-symbols-alist}. More elaborate |
| 1506 | adding more entries to @code{prettify-symbols-alist}. There is also a | 1506 | customization is available via customizing |
| 1507 | global version, @code{global-prettify-symbols-mode}, which enables the | 1507 | @code{prettify-symbols-compose-predicate} if its default value |
| 1508 | mode in all buffers that support it. | 1508 | @code{prettify-symbols-default-compose-p} is not appropriate. There |
| 1509 | is also a global version, @code{global-prettify-symbols-mode}, which | ||
| 1510 | enables the mode in all buffers that support it. | ||
| 1511 | |||
| 1512 | The symbol at point can be shown in its original form. This is | ||
| 1513 | controlled by the variable @code{prettify-symbols-unprettify-at-point}: | ||
| 1514 | if non-@code{nil}, the original form of symbol at point will be | ||
| 1515 | restored for as long as point is at it. | ||
| 1509 | 1516 | ||
| 1510 | 1517 | ||
| 1511 | @node C Modes | 1518 | @node C Modes |