From 68386ab2c4c7ac69bfe39c2607750a6ebe7c01dd Mon Sep 17 00:00:00 2001 From: contrapunctus Date: Sun, 15 Aug 2021 01:37:21 +0530 Subject: [PATCH] [eww] use eww-after-render-hook for line display functions --- init.org | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/init.org b/init.org index 6f967ea..0a43c1d 100644 --- a/init.org +++ b/init.org @@ -974,8 +974,12 @@ Unique key-values for task "Exercise" **** eww #+BEGIN_SRC emacs-lisp (use-package eww + :hook + (eww-after-render . visual-line-mode) + (eww-after-render . visual-fill-column-mode) :config - (setq shr-image-animate nil) + (setq shr-image-animate nil + shr-width -1) :bind ;; start boon-specific config (:map shr-map @@ -1868,9 +1872,7 @@ Don't try to check if there are files with a certain extension...it will lead to (markdown-mode . visual-line-mode) (org-mode . visual-line-mode) (org-mode . visual-fill-column-mode) - (message-mode . visual-fill-column-mode) - (eww-mode . visual-line-mode) - (eww-mode . visual-fill-column-mode)) + (message-mode . visual-fill-column-mode)) #+END_SRC