(The start of) A Reddit mode for Emacs
github.com/death/reddit-mode/tree/masterPosted May 24, 2008, 1:40 PM UTC
Posted May 24, 2008, 1:40 PM UTC
BEWARE! This is obviously a conspiracy by vim users that can then say they are definitely more productive than emacs users.
Really basic. Hacked it in a few hours. Thought I'd share. Patches welcome.
I'm not an emacs user and can't really grok e-lisp but am curious. What does it do?
Does it provide an interface for reading reddit\posting comments in an Emacs buffer?
Or something else?
Edit: Ok, I see that you're using the new json interface to load stories and comments.
Does it provide an interface for reading reddit
yes
posting comments
no. reddit now exports JSON; but still doesn't have an API.
[deleted]
[deleted]
[deleted]
[deleted]
[deleted]
[deleted]
[deleted]
It's on our list, but it turns out that exporting JSON satisfied about 90% of the tasks of the requests for people that wanted an API, and it was quick to do. An actual writeable API is a bit more complicated
[deleted]
[deleted]
[deleted]
[deleted]
[deleted]
[deleted]
This project proves you are evil :)
Look out! Beware! When the full moon's high n' bright...
By God, man! Emacs, the one possible sanctuary of productivity away from Reddit and the internets, and now you've gone and ruined it!
Starting work on viddit
redmacsit!
And so the Holy Wars begin anew.
vs. (w3m-goto-url "http://programming.reddit.com/")?
Yeah, there's not much beyond shiny right now, but it's already more convenient to me in viewing comments.
Really basic. Hacked it in a few hours. Thought I'd share. Patches welcome.
Mind the markdown-corruption.
user=ayrnieu
wget=wget --load-cookies=cookies --save-cookies=cookies --keep-session-cookies
login::
$(wget) --post-data="uh=&op=login_main&user_login=$(user)&passwd_login=$(passwd)&r=%20reddit.com&_=" http://reddit.com/api/login
comment::
-rm th-$(thread)
$(wget) -O th-$(thread) http://reddit.com/info/$(thread)/comments/$(comment_id)
modhash=`perl -lne "m,var modhash = '([^']+),; print \\$$1; exit" th-$(thread)`; \
$(wget) --post-data="uh=$$modhash&id=t1_$(comment_id)&comment=$(comment)&r=%20reddit.com&_=" http://reddit.com/api/comment
Thanks. I added the ability to log in. I'll save posting comments, markdown, and such for later.
Why 0 points? sheesh
edit: Eh, apart from /api/ not existing
It exists just fine -- when you POST to it.
But without posting...
Let reddit create an API for writing then we'll see more of these.
[deleted]
[deleted]
i use emacs-w3m as my usual browser. you can't even post comments on reddit with it because reddit requires js to post a comment. if reddit supported non-js environments, emacs-w3m could be used natively
Don't do it reddit. I drop to the console when I need to be productive, and a non-js reddit would ruin that.
[deleted]
[deleted]
[deleted]
[deleted]
[deleted]
[deleted]
[deleted]
[deleted]
[deleted]
[deleted]
rEDdit. Ed! Ed is the standard editor! I don't want a viddit or an emacsit. Those aren't even words!
Ed: it's the standard text editor.