summaryrefslogtreecommitdiff
path: root/doc/emacs/display.texi
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2022-04-23 14:12:18 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2022-04-23 14:13:10 +0200
commitc789430331948e76b38091aa95bb9a9602a08289 (patch)
tree4041d603abbd50b98710e22f0990bb092bf283a8 /doc/emacs/display.texi
parent759d337b0d05f3164bf90dd980a079cd412f9de1 (diff)
downloademacs-c789430331948e76b38091aa95bb9a9602a08289.tar.gz
Add new minor mode word-wrap-whitespace-mode
* doc/emacs/display.texi (Visual Line Mode): Document it. * lisp/textmodes/word-wrap-mode.el: New minor mode.
Diffstat (limited to 'doc/emacs/display.texi')
-rw-r--r--doc/emacs/display.texi14
1 files changed, 12 insertions, 2 deletions
diff --git a/doc/emacs/display.texi b/doc/emacs/display.texi
index 534bf5881e7..2ac0dca6223 100644
--- a/doc/emacs/display.texi
+++ b/doc/emacs/display.texi
@@ -1899,12 +1899,22 @@ logical lines, so having a fringe indicator for each wrapped line
would be visually distracting. You can change this by customizing the
variable @code{visual-line-fringe-indicators}.
+@vindex word-wrap-whitespace-mode
+ By default, Emacs only breaks lines after whitespace characters like
+@key{SPC} and @key{TAB}, but does not break after whitespace
+characters like @key{EN QUAD}. Emacs provides a minor mode called
+@code{word-wrap-whitespace-mode} that switches on word wrapping in the
+current mode, and sets up which characters to wrap lines on based on
+the @code{word-wrap-whitespace-characters} user option. There's also
+a globalized version of that mode called
+@code{global-word-wrap-whitespace-mode}.
+
@vindex word-wrap-by-category
@findex modify-category-entry
@findex char-category-set
@findex category-set-mnemonics
- By default, Emacs only breaks lines after whitespace characters.
-That produces incorrect results when CJK and Latin text are mixed
+ Only breaking after whitespace character produces incorrect
+results when CJK and Latin text are mixed
together (because CJK characters don't use whitespace to separate
words). You can customize the option @code{word-wrap-by-category} to
allow Emacs to break lines after any character with @samp{|} category