Fork me on GitHub
#emacs
<
2016-12-22
>
naomarik00:12:40

does something exist where you can add an additional layer over a file to pollute it with your own nonsense comments and that exists outside of it?

hlolli17:12:29

Does someone know an emacs tool where you can take an html text and remove the tags but somehow add structure, at least faces where bold and h1 tags are found. Im trying to find a way to spit html docs into a repl buffer with humar readability if possible. I may end up developing my own solution. I wonder what emacs users use to view html formatted emails?

chris19:12:03

iirc they either use w3 or eww

chris19:12:09

so, nothing that helps you out here

chris19:12:35

although apparently a simple html renderer ships with emacs which is the basis of eww

chris19:12:47

so you can use html2text and see what that gives you

ballpointcarrot19:12:51

another option is pandoc, which is a command line tool to convert different types of markup (incl. Markdown, html, org-mode, docbook, etc.

dpsutton19:12:03

a user on here named plexus wrote this utility: https://github.com/plexus/html-to-hiccup

dpsutton19:12:19

this uses a parsing library and emits hiccup

dpsutton19:12:29

you could maybe add some interpreter for hiccup data

munen21:12:54

@hlolli I'm doing my (loads of daily) emails in Emacs with mu4e and mu4e-shr2text. It's not awesome, but the best that I could find after benchmarking all options that I could find on a semi-vast set of html emails.

munen21:12:18

But to be honest, quite often I use a shortcut to open HTML mails in the Browser.

munen21:12:42

This happens for those fancy auto generated mails. Mails from Outlook, Gmail and what not are totally readable with mu4e-shr2text.

hlolli21:12:59

sorry channel, I literally got message that my message delivery failed and therefore wasn't checking if I got any replies. And my message is not visible on my slack as I write. (now reading the replies...)

munen21:12:06

@hlolli Here's my Emacs mail configuration if you're interested: https://github.com/munen/emacs.d/blob/master/configuration.org#mail I'm quite happy about it. Many years ago I had mutt with vim, then Mail.app, all the good web mailers and now I'm having the best mail experience of my life thanks to mu4e(;

hlolli21:12:57

ok, thanks @munen I see that mu4e has Html2text functions that may do what Im looking for. Of curiousity, since I never actually used emacs for mails, are you using gmail (because most serious emacs users I know have serious cia paranoia 🙂 ).

hlolli21:12:14

well nevermind that gmail question. I think I can't see myself using emacs email, as I acess my mail on so many different devices.