]> git.eshelyaron.com Git - emacs.git/commitdiff
Mention how to disable auto-fill-mode in the auto-fill section
authorLars Ingebrigtsen <larsi@gnus.org>
Mon, 13 Sep 2021 10:41:34 +0000 (12:41 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 13 Sep 2021 10:41:34 +0000 (12:41 +0200)
* doc/lispref/text.texi (Margins): Mention how to disable
auto-fill-mode.

doc/lispref/text.texi
etc/NEWS

index 9e0401fffb9e128c6f231d9471e310d09e6d23a4..f83ca97163b68c214237e8efe8077328fe8a23d7 100644 (file)
@@ -1802,7 +1802,12 @@ read, you should set @code{fill-column} to no more than 70.  Otherwise
 the line will be too long for people to read comfortably, and this can
 make the text seem clumsy.
 
-The default value for @code{fill-column} is 70.
+The default value for @code{fill-column} is 70.  To disable Auto Fill
+mode in a specific mode, you could say something like:
+
+@lisp
+(add-hook 'foo-mode-hook (lambda () (auto-fill-mode -1))
+@end lisp
 @end defopt
 
 @deffn Command set-left-margin from to margin
index 7d16bf08f38e6c1fccadaa76db1c695806882b78..da1ca697676ae03cdff21143ad2305ae8b52ff80 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -2964,6 +2964,7 @@ This is to keep the same behavior as Eshell.
 The original key binding was 'M-s', which interfered with I-search,
 since the latter uses 'M-s' as a prefix key of the search prefix map.
 
+---
 ** In 'f90-mode', the backslash character ('\') no longer escapes.
 For about a decade, the backslash character has no longer had a
 special escape syntax in Fortran F90.  To get the old behavior back,
@@ -2971,6 +2972,7 @@ say something like:
 
     (modify-syntax-entry ?\\ "\\" f90-mode-syntax-table)
 
++++
 ** Setting 'fill-column' to nil is obsolete.
 This undocumented use of 'fill-column' is now obsolete.  To disable
 auto filling, turn off 'auto-fill-mode' instead.