From 48317832641dc5b29e986ffef0b1b01c86b41962 Mon Sep 17 00:00:00 2001 From: Vasilij Schneidermann Date: Sat, 9 Sep 2017 22:12:10 +0200 Subject: Explain how text width/margins can be customized --- README.rst | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) 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 ----- -- cgit v1.2.3