[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/visual-fill-column f317adbb83 003/137: Write README.md
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/visual-fill-column f317adbb83 003/137: Write README.md |
Date: |
Sun, 2 Jan 2022 22:59:07 -0500 (EST) |
branch: elpa/visual-fill-column
commit f317adbb83826a22bb7a19611245abb2e62bdeb6
Author: Joost Kremers <joostkremers@fastmail.fm>
Commit: Joost Kremers <joostkremers@fastmail.fm>
Write README.md
---
README.md | 34 +++++++++++++++++++++++++++++++++-
1 file changed, 33 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 75b26f7094..a590705c4a 100644
--- a/README.md
+++ b/README.md
@@ -1 +1,33 @@
-# visual-fill-column
+# `visual-fill-column-mode` #
+
+`visual-fill-column-mode` is a small minor mode that mimics the effect of
`fill-column` in `visual-line-mode`. Instead of wrapping lines at the window
edge, which is the standard behaviour of `visual-line-mode`, it wraps lines at
`fill-column`. If `fill-column` is too large for the window, the text is
wrapped at the window edge.
+
+
+## Installation ##
+
+To install `visual-fill-column-mode`, simply put `visual-fill-column-mode.el`
in your load path and add the following lines to your `init.el`:
+
+```lisp
+(require 'visual-fill-column)
+(global-visual-fill-column-mode)
+```
+
+The command `global-visual-fill-column-mode` turns on
`visual-fill-column-mode` in all buffers that use `visual-line-mode`.
+
+
+## Usage ##
+
+To use `visual-fill-column-mode` with `visual-line-mode`, use the command
`global-visual-fill-column-mode`. Alternatively, you can use the command
`visual-fill-column-mode` in mode hooks. Note that it is perfectly possible to
use `visual-fill-column-mode` independently from `visual-line-mode`.
+
+`visual-fill-column-mode` works by widening the right window margin. This
reduces the area that is available for text display, creating the appearance
that the text is wrapped at `fill-column`. In buffers that are explicitly
right-to-left (i.e., those where `bidi-paragraph-direction` is set to
`right-to-left`), the left margin is expanded, so that the text appears at the
window’s right margin.
+
+Widening the margin has the effect that the fringe is pushed inward. Since the
fringe is visible, this has a somewhat disturbing, because it looks like
there’s another window to the left. For this reason, the left fringe is
disabled by default.
+
+
+## Options ##
+
+`visual-fill-column-width`: column at which to wrap lines. If set to `nil`
(the default), use the value of `fill-column` instead. Can also be set to a
fraction between `0` and `1`, in which case the text width is relative to the
window width.
+
+`visual-fill-column-center-text`: if set to `t`, centre the text area in the
window. By default, the text is displayed at the window’s (left) edge,
mimicking the effect of `fill-column`.
+
+`visual-fill-column-disable-fringe`: if set to `t`, the left fringe is
disabled. Note that if `visual-fill-column-center-text` is set to `t`, both the
left and right fringes are disabled.
- [nongnu] elpa/visual-fill-column c8d61f0287 070/137: Take line number width into account., (continued)
- [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, 2022/01/02
- [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 <=
- [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
- [nongnu] elpa/visual-fill-column d24354e79b 039/137: Update version number., ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column d96fefd6be 056/137: Further change to the README., ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column ccb017b24e 069/137: Bug fix: calculate right margin on the basis of left margin., ELPA Syncer, 2022/01/02
- [nongnu] elpa/visual-fill-column 0cba0dcc15 087/137: Add example code for setting split-window-preferred-function., ELPA Syncer, 2022/01/02