Coder Social home page Coder Social logo

Line formatting when reading an entry about elfeed HOT 3 OPEN

bmp avatar bmp commented on August 15, 2024
Line formatting when reading an entry

from elfeed.

Comments (3)

bmp avatar bmp commented on August 15, 2024 1

Thank you for this approach, I use writeroom-mode and tried olivetti for this and disabled golden-ratio too, but have the same problem!

from elfeed.

butter-radish avatar butter-radish commented on August 15, 2024 1

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)

from elfeed.

johnhamelink avatar johnhamelink commented on August 15, 2024

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))))

from elfeed.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.