💾 Archived View for midnight.pub › posts › 808 captured on 2024-08-25 at 03:54:01. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-04-28)

-=-=-=-=-=-=-

Midnight Pub

Post from Emacs!

~uirapuru

I have put together a simple emacs lisp script to enable one to post and reply

to midnight pub from the confort of emacs, I plan on making it a minor-mode for

Elpher, but for now all you have to do is call one of the three provided

functions from the buffer where you wrote your post: mpub-post, mpub-reply,

mpub-reply-thread. In the case of the first the post title is the name of your

buffer without the file extension, and for the latter two you will be prompted

for the post id to reply to.

https://git.sr.ht/~mathgamain/emacs-mpub/tree/main/item/mpub.el

The same way as with the shell script provided by ~m15o, you have to put your

midnight pub cookie on ~/.config/.midnight

gemini://midnight.pub/posts/263

Also, it depends on request.el:

https://github.com/tkf/emacs-request

Hope you enjoy it!

Write a reply

Replies

~ew wrote (thread):

Hello, this reminds me, that I never got midnight.sh to work. So I log in via Firefox, I find said session cookie in

"Hamburger Menu" > "More Tools" > "Web Developer Tools" click on Storage. I click on the line starting with "midn" "some_long_garbage" ... Well, excuse me, but what exactly goes into the file? Just one line? Three? More?

midn="some_long_garbage"

With quotes? anything missing? Does it need the two following empty line?

midn="some_long_garbage";"";""

or something such?

Just put the cookie into that file, I hear you. But I'm clueless.

~bartender? How about some more of that moonshine out of that cupboard? Thanks.

~contrarian wrote:

You might like textboard.org. It's written in MIT Scheme.

~m15o wrote:

This is incredible, thank you ~uirapuru!