diff options
| author | Glenn Morris | 2014-06-07 16:39:40 -0700 |
|---|---|---|
| committer | Glenn Morris | 2014-06-07 16:39:40 -0700 |
| commit | bc257cae1cf60239ff79bc052483542d267d1cf5 (patch) | |
| tree | 40b3c934cecd92abf1c620dba20ca7d9374796b2 | |
| parent | a0e26ff003c14925278c5bf5939615a4ccd0ac29 (diff) | |
| download | emacs-bc257cae1cf60239ff79bc052483542d267d1cf5.tar.gz emacs-bc257cae1cf60239ff79bc052483542d267d1cf5.zip | |
Doc tweaks re prettify-symbols-mode
* doc/emacs/programs.texi (Prettifying Symbols): Remove node.
(Misc for Programs): Mention more briefly here.
* doc/emacs emacs.texi (Top): Update menu.
| -rw-r--r-- | doc/emacs/ChangeLog | 6 | ||||
| -rw-r--r-- | doc/emacs/emacs.texi | 1 | ||||
| -rw-r--r-- | doc/emacs/programs.texi | 43 |
3 files changed, 17 insertions, 33 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog index 6ca98a3f24b..1b3e82d4a1f 100644 --- a/doc/emacs/ChangeLog +++ b/doc/emacs/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2014-06-07 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * programs.texi (Prettifying Symbols): Remove node. | ||
| 4 | (Misc for Programs): Mention more briefly here. | ||
| 5 | * emacs.texi (Top): Update menu. | ||
| 6 | |||
| 1 | 2014-06-05 Glenn Morris <rgm@gnu.org> | 7 | 2014-06-05 Glenn Morris <rgm@gnu.org> |
| 2 | 8 | ||
| 3 | * package.texi (Package Menu, Package Installation): | 9 | * package.texi (Package Menu, Package Installation): |
diff --git a/doc/emacs/emacs.texi b/doc/emacs/emacs.texi index d665a9dedaf..7785d74c14b 100644 --- a/doc/emacs/emacs.texi +++ b/doc/emacs/emacs.texi | |||
| @@ -670,7 +670,6 @@ Editing Programs | |||
| 670 | * Symbol Completion:: Completion on symbol names of your program or language. | 670 | * Symbol Completion:: Completion on symbol names of your program or language. |
| 671 | * MixedCase Words:: Dealing with identifiersLikeThis. | 671 | * MixedCase Words:: Dealing with identifiersLikeThis. |
| 672 | * Semantic:: Suite of editing tools based on source code parsing. | 672 | * Semantic:: Suite of editing tools based on source code parsing. |
| 673 | * Prettifying Symbols:: Display symbols as composed characters. | ||
| 674 | * Misc for Programs:: Other Emacs features useful for editing programs. | 673 | * Misc for Programs:: Other Emacs features useful for editing programs. |
| 675 | * C Modes:: Special commands of C, C++, Objective-C, | 674 | * C Modes:: Special commands of C, C++, Objective-C, |
| 676 | Java, IDL, Pike and AWK modes. | 675 | Java, IDL, Pike and AWK modes. |
diff --git a/doc/emacs/programs.texi b/doc/emacs/programs.texi index 82bde754909..05008790b4f 100644 --- a/doc/emacs/programs.texi +++ b/doc/emacs/programs.texi | |||
| @@ -38,7 +38,6 @@ Highlight program syntax (@pxref{Font Lock}). | |||
| 38 | * Symbol Completion:: Completion on symbol names of your program or language. | 38 | * Symbol Completion:: Completion on symbol names of your program or language. |
| 39 | * MixedCase Words:: Dealing with identifiersLikeThis. | 39 | * MixedCase Words:: Dealing with identifiersLikeThis. |
| 40 | * Semantic:: Suite of editing tools based on source code parsing. | 40 | * Semantic:: Suite of editing tools based on source code parsing. |
| 41 | * Prettifying Symbols:: Display symbols as composed characters. | ||
| 42 | * Misc for Programs:: Other Emacs features useful for editing programs. | 41 | * Misc for Programs:: Other Emacs features useful for editing programs. |
| 43 | * C Modes:: Special commands of C, C++, Objective-C, Java, | 42 | * C Modes:: Special commands of C, C++, Objective-C, Java, |
| 44 | IDL, Pike and AWK modes. | 43 | IDL, Pike and AWK modes. |
| @@ -1434,37 +1433,6 @@ is idle. | |||
| 1434 | @xref{Top, Semantic,, semantic, Semantic}, for details. | 1433 | @xref{Top, Semantic,, semantic, Semantic}, for details. |
| 1435 | @end ifnottex | 1434 | @end ifnottex |
| 1436 | 1435 | ||
| 1437 | @node Prettifying Symbols | ||
| 1438 | @section Prettifying Symbols | ||
| 1439 | @cindex prettifying symbols | ||
| 1440 | @cindex symbol, prettifying | ||
| 1441 | |||
| 1442 | @code{prettify-symbols-mode} and @code{global-prettify-symbols-mode} | ||
| 1443 | are two minor modes (@pxref{Minor Modes}) that can display specified | ||
| 1444 | symbols as composed characters. For instance, in Emacs Lisp mode | ||
| 1445 | (@pxref{Lisp Eval}), this mode will replace the string ``lambda'' with | ||
| 1446 | the Greek lambda character. | ||
| 1447 | |||
| 1448 | @findex prettify-symbols-mode | ||
| 1449 | @vindex prettify-symbols-alist | ||
| 1450 | When Prettify Symbols mode and Font Lock mode (@pxref{Font Lock}) are | ||
| 1451 | enabled, symbols are prettified (displayed as composed characters) | ||
| 1452 | according to the rules in @code{prettify-symbols-alist}, which are | ||
| 1453 | locally defined by major modes (@pxref{Major Modes}) supporting | ||
| 1454 | prettifying. To add further customizations for a given major mode, | ||
| 1455 | you can modify @code{prettify-symbols-alist}. For example: | ||
| 1456 | |||
| 1457 | @example | ||
| 1458 | (add-hook 'emacs-lisp-mode-hook | ||
| 1459 | (lambda () | ||
| 1460 | (push '("<=" . ?≤) prettify-symbols-alist))) | ||
| 1461 | @end example | ||
| 1462 | |||
| 1463 | @findex global-prettify-symbols-mode | ||
| 1464 | You can enable this mode locally in desired buffers, or use | ||
| 1465 | @code{global-prettify-symbols-mode} to enable it for all modes that | ||
| 1466 | support it. | ||
| 1467 | |||
| 1468 | @node Misc for Programs | 1436 | @node Misc for Programs |
| 1469 | @section Other Features Useful for Editing Programs | 1437 | @section Other Features Useful for Editing Programs |
| 1470 | 1438 | ||
| @@ -1512,6 +1480,17 @@ with the Foldout package (@pxref{Foldout}). | |||
| 1512 | @xref{Top,,Autotyping, autotype, Autotyping}. | 1480 | @xref{Top,,Autotyping, autotype, Autotyping}. |
| 1513 | @end ifinfo | 1481 | @end ifinfo |
| 1514 | 1482 | ||
| 1483 | @findex prettify-symbols-mode | ||
| 1484 | Prettify Symbols mode is a buffer-local minor mode that replaces | ||
| 1485 | certain strings with more ``attractive'' versions for display | ||
| 1486 | purposes. For example, in Emacs Lisp mode, it replaces the string | ||
| 1487 | ``lambda'' with the Greek lambda character. You may wish to use this | ||
| 1488 | in non-programming modes as well. You can customize the mode by | ||
| 1489 | adding more entries to @code{prettify-symbols-alist}. There is also a | ||
| 1490 | global version, @code{global-prettify-symbols-mode}, which enables the | ||
| 1491 | mode in all buffers that support it. | ||
| 1492 | |||
| 1493 | |||
| 1515 | @node C Modes | 1494 | @node C Modes |
| 1516 | @section C and Related Modes | 1495 | @section C and Related Modes |
| 1517 | @cindex C mode | 1496 | @cindex C mode |