emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/visual-fill-column 0cba0dcc15 087/137: Add example code fo


From: ELPA Syncer
Subject: [nongnu] elpa/visual-fill-column 0cba0dcc15 087/137: Add example code for setting split-window-preferred-function.
Date: Sun, 2 Jan 2022 22:59:14 -0500 (EST)

branch: elpa/visual-fill-column
commit 0cba0dcc15b6f1907a257f85da39e04b15559725
Author: Joost Kremers <joostkremers@fastmail.fm>
Commit: Joost Kremers <joostkremers@fastmail.fm>

    Add example code for setting split-window-preferred-function.
---
 README.md | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md
index bdeefb03b1..06de584340 100644
--- a/README.md
+++ b/README.md
@@ -39,7 +39,9 @@ Widening the margin normally causes the fringes to be pushed 
inward. Since this
 
 ## Splitting a Window ##
 
-Emacs won’t vertically split a window (i.e., into two side-by-side windows) 
that has wide margins. As a result, displaying buffers such as `*Help*` 
buffers, `*Completion*` buffers, etc., won’t split a window vertically, even if 
there appears to be enough space for a vertical split. This is not problematic, 
but it may be undesirable. To remedy this, you can set the option 
`split-window-preferred-function` to 
`visual-fill-column-split-window-sensibly`. This function first unsets the 
margin [...]
+Emacs won’t vertically split a window (i.e., into two side-by-side windows) 
that has wide margins. As a result, displaying buffers such as `*Help*` 
buffers, `*Completion*` buffers, etc., won’t split a window vertically, even if 
there appears to be enough space for a vertical split. This is not problematic, 
but it may be undesirable. To remedy this, you can set the option 
`split-window-preferred-function` to 
`visual-fill-column-split-window-sensibly`. This function first unsets the 
margin [...]
+
+    (setq-default split-window-preferred-function 
'visual-fill-column-split-window-sensibly)
 
 
 ## Adjusting Text Size ##



reply via email to

[Prev in Thread] Current Thread [Next in Thread]