elfeed
elfeed copied to clipboard
Line formatting when reading an entry
Hello,
Line breaks and formatting seems to break when I open a window to read an entry in elfeed, here are two screenshots to explain what I mean.
-
With two frames:
-
Here it is when it is the only frame,
I have golden ratio enabled if that is useful information.
Thank you!
You could try using an unfill function to reformat the text so it's on one line per paragraph, then let Emacs handle the line-wrapping. I use olivetti-mode to center the text in the buffer.
I have this which might be helpful:
(use-package unfill
:straight t
:config
(defun jjh/unfill-buffer ()
"Loop through all the paragraphs in this buffer and unfill them."
(interactive)
(goto-char (point-min))
(while (not (eobp))
(condition-case ex (unfill-paragraph)
(error
(message "Skipping Paragraph: %s" ex)))
(forward-paragraph))))
Thank you for this approach, I use writeroom-mode
and tried olivetti for this and disabled golden-ratio
too, but have the same problem!
With Olivetti and Elfeed, refreshing Elfeed-show (with 'g') fixes the improper line-breaks (and incorrectly-sized, cut-off images). The following function does it automatically whenever you open an entry in Elfeed-show.
(defun elfeed-olivetti (buff)
(switch-to-buffer buff)
(olivetti-mode)
(elfeed-show-refresh))
(setq elfeed-show-entry-switch 'elfeed-olivetti)