diff options
| author | Eli Zaretskii | 2017-09-23 10:07:11 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2017-09-23 10:07:11 +0300 |
| commit | 0e143b1fc5d716cbc4509b416a1067b417df2676 (patch) | |
| tree | 3fdf22599f065acd9349da13a87b889e974db983 /doc | |
| parent | f656ccdb4384564001ae181c66f2a242bc31a849 (diff) | |
| download | emacs-0e143b1fc5d716cbc4509b416a1067b417df2676.tar.gz emacs-0e143b1fc5d716cbc4509b416a1067b417df2676.zip | |
Documentation improvements for 'display-line-numbers'
* doc/emacs/display.texi (Display Custom): Document a few more
options for display-line-numbers. (Bug#28533) Fix a typo.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/emacs/display.texi | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/doc/emacs/display.texi b/doc/emacs/display.texi index 2aa79e1161a..f074e989bc0 100644 --- a/doc/emacs/display.texi +++ b/doc/emacs/display.texi | |||
| @@ -1756,7 +1756,7 @@ Any other non-@code{nil} value is treated as @code{t}. | |||
| 1756 | @vindex display-line-numbers-type | 1756 | @vindex display-line-numbers-type |
| 1757 | A convenient way of turning on display of line numbers is @w{@kbd{M-x | 1757 | A convenient way of turning on display of line numbers is @w{@kbd{M-x |
| 1758 | display-line-numbers-mode @key{RET}}}. This mode has a globalized | 1758 | display-line-numbers-mode @key{RET}}}. This mode has a globalized |
| 1759 | variant, @code{global-display-line0numbers-mode}. The user option | 1759 | variant, @code{global-display-line-numbers-mode}. The user option |
| 1760 | @code{display-line-numbers-type} controls which sub-mode of | 1760 | @code{display-line-numbers-type} controls which sub-mode of |
| 1761 | line-number display, described above, will these modes activate. | 1761 | line-number display, described above, will these modes activate. |
| 1762 | 1762 | ||
| @@ -1778,6 +1778,17 @@ the variable @code{display-line-numbers-widen} to a non-@code{nil} | |||
| 1778 | value, line numbers will disregard any narrowing and will start at the | 1778 | value, line numbers will disregard any narrowing and will start at the |
| 1779 | first character of the buffer. | 1779 | first character of the buffer. |
| 1780 | 1780 | ||
| 1781 | @vindex display-line-numbers-width-start | ||
| 1782 | @vindex display-line-numbers-grow-only | ||
| 1783 | @vindex display-line-numbers-width | ||
| 1784 | In selective display mode (@pxref{Selective Display}), and other modes | ||
| 1785 | that hide many lines from display (such as Outline and Org modes), you | ||
| 1786 | may wish to customize the variables | ||
| 1787 | @code{display-line-numbers-width-start} and | ||
| 1788 | @code{display-line-numbers-grow-only}, or set | ||
| 1789 | @code{display-line-numbers-width} to a large enough value, to avoid | ||
| 1790 | occasional miscalculations of space reserved for the line numbers. | ||
| 1791 | |||
| 1781 | @cindex line-number face | 1792 | @cindex line-number face |
| 1782 | The line numbers are displayed in a special face @code{line-number}. | 1793 | The line numbers are displayed in a special face @code{line-number}. |
| 1783 | The current line number is displayed in a different face, | 1794 | The current line number is displayed in a different face, |