[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/visual-fill-column 930c5b2c42 047/137: Add note about text
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/visual-fill-column 930c5b2c42 047/137: Add note about text size adjustments to README. |
Date: |
Sun, 2 Jan 2022 22:59:11 -0500 (EST) |
branch: elpa/visual-fill-column
commit 930c5b2c42c3fc5e9b6763fae776cd1a373d3577
Author: Joost Kremers <joostkremers@fastmail.fm>
Commit: Joost Kremers <joostkremers@fastmail.fm>
Add note about text size adjustments to README.
---
README.md | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/README.md b/README.md
index af99c7e953..8bdfbbcc3c 100644
--- a/README.md
+++ b/README.md
@@ -24,6 +24,13 @@ Widening the margin causes the fringe to be pushed inward.
For this reason, the
Note that 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 width of the margins is adjusted for the text size. However, interactive
adjustments (e.g., with `text-size-adjust`) cannot be detected by
`visual-fill-column-mode`, therefore if you adjust the text size while
`visual-fill-column-mode` is active, the margins won't be adjusted. To remedy
this, you can force a redisplay, e.g., by switching buffers, splitting and
unsplitting the window or calling `redraw-display`.
+
+Alternatively, you can advise the function `text-size-adjust` (or whatever
function you use to adjust the text size) with the function
`visual-fill-column-adjust-window`:
+
+ (advice-add 'text-scale-adjust :after
+ #'visual-fill-column-adjust-window)
+
## Options ##
- [nongnu] elpa/visual-fill-column ccecfac6ca 029/137: Handle window splitting., (continued)
- [nongnu] elpa/visual-fill-column ccecfac6ca 029/137: Handle window splitting., ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column 5e698470b6 038/137: Set window parameter properly in vfc-adjust-window, ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column 865c9b32ea 043/137: Merge pull request #16 from wbolster/patch-1, ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column 6c6074114d 068/137: Make visual-fill-column--adjust-frame global in `window-size-change-functions'., ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column c8d61f0287 070/137: Take line number width into account., ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column b3b953116b 046/137: Make `visual-fill-column-adjust-window' a public function., ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column 9a3a2ef3c7 074/137: Add Cask & ert-runner, ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column da5a8d688a 066/137: Merge pull request #35 from yuhan0/patch-1, ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column 772d4b25ba 073/137: Merge pull request #38 from peterwvj/patch-1, ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column b1a91caac6 075/137: Merge pull request #9 from xuchunyang/patch-1, ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column 930c5b2c42 047/137: Add note about text size adjustments to README.,
ELPA Syncer <=
- [nongnu] elpa/visual-fill-column 159dcee48e 051/137: Make sure we only affect margins of buffers with v-f-c-mode enabled., ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column bf262d9823 081/137: Fix README III, ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column 3bfeefa365 094/137: Use min-margins window parameter., ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column f317adbb83 003/137: Write README.md, ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column 8aa3417784 109/137: Fix markup in the README., ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column 6fa9e7912a 127/137: Do not set `split-window-preferred-function` by default., ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column 3bd339520f 129/137: Add screenshot for centred text., ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column cf3e2bc632 137/137: Add option `visual-fill-column-adjust-for-text-scale`., ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column 8e25e8416e 022/137: Add URL header, ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column ed3dec104f 032/137: Fix doc string of `visual-fill-column-split-window-sensibly', ELPA Syncer, 2022/01/02