branch: externals/olivetti
commit bd24fae72a1c87b3a5c9a79fab181b4f97625346
Author: Paul Rankin <he...@paulwrankin.com>
Commit: Paul Rankin <he...@paulwrankin.com>

    Removed erroneous mode-hook
---
 olivetti.el | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/olivetti.el b/olivetti.el
index d12e691..1287f57 100644
--- a/olivetti.el
+++ b/olivetti.el
@@ -70,12 +70,6 @@
 
 ;;; Customizable Variables =============================================
 
-(defcustom olivetti-mode-hook
-  '(turn-on-visual-line-mode)
-  "Mode hook for `olivetti-mode', run after mode is turned on."
-  :type 'hook
-  :group 'olivetti)
-
 (defcustom olivetti-body-width
   80
   "Text body width to which to adjust relative margin width.
@@ -221,6 +215,7 @@ hidden."
                   'olivetti-set-environment nil t)
         (add-hook 'after-setting-font-hook
                   'olivetti-set-environment nil t)
+        (visual-line-mode 1)
         (olivetti-set-environment))
     (olivetti-set-mode-line 'exit)
     (set-window-margins nil nil)

Reply via email to