aboutsummaryrefslogtreecommitdiff
path: root/README.rst
diff options
context:
space:
mode:
authorVasilij Schneidermann <mail@vasilij.de>2017-09-09 22:12:10 +0200
committerVasilij Schneidermann <mail@vasilij.de>2017-09-09 22:12:10 +0200
commit48317832641dc5b29e986ffef0b1b01c86b41962 (patch)
tree54223a0dadfdcccd61a1f06d875f9d045ad71502 /README.rst
parente0df960b4361c5c8298569337bbeef4e5c90749a (diff)
Explain how text width/margins can be customized
Diffstat (limited to 'README.rst')
-rw-r--r--README.rst21
1 files changed, 21 insertions, 0 deletions
diff --git a/README.rst b/README.rst
index c51cf48..ae74075 100644
--- a/README.rst
+++ b/README.rst
@@ -70,6 +70,27 @@ To completely disable the variable pitch font, customize
``nov-variable-pitch`` to ``nil``. Text will be displayed with the
default face instead which should be using a monospace font.
+Text width
+..........
+
+By default text is filled by the window width. You can customize
+``nov-text-width`` to a number of columns to change that:
+
+.. code:: elisp
+
+ (setq nov-text-width 80)
+
+It's also possible to set it to a huge number to inhibit text filling,
+this can be used in combination with ``visual-line-mode`` and packages
+such as ``visual-fill-column`` to implement more flexible filling:
+
+.. code:: elisp
+
+ (setq nov-text-width most-positive-fixnum)
+ (setq visual-fill-column-center-text t)
+ (add-hook 'nov-mode-hook 'visual-line-mode)
+ (add-hook 'nov-mode-hook 'visual-fill-column-mode)
+
Usage
-----