visual-line-mode
works fine for line wrapping in eww-mode
. However, when I type C-x C-+ / C-x C-- to change the font size, the line wrapping does not adjust accordingly.
Does anyone know how can this be achieved?
visual-line-mode
works fine for line wrapping in eww-mode
. However, when I type C-x C-+ / C-x C-- to change the font size, the line wrapping does not adjust accordingly.
Does anyone know how can this be achieved?
Thanks to @DoMiNeLa10's advice. I tried to add a local hook for text-scale-mode
, it does work.
(defun my/text-scale-mode-hook ()
(eww-reload :local))
(add-hook 'eww-mode-hook
(lambda()
(add-hook 'text-scale-mode-hook
'my/text-scale-mode-hook
nil :local)))