Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/thanhvg/emacs-reddigg

Browse reddit in emacs org-mode.
https://github.com/thanhvg/emacs-reddigg

Last synced: 12 days ago
JSON representation

Browse reddit in emacs org-mode.

Awesome Lists containing this project

README

        

#+STARTUP: content indent
#+title: View reddit in emacs org-mode

[[http://spacemacs.org][file:https://cdn.rawgit.com/syl20bnr/spacemacs/442d025779da2f62fc86c2082703697714db6514/assets/spacemacs-badge.svg]]

[[file:media/screenshot.png]]

[[file:media/screencast.gif]]

* Intro
This package allows you to browse reddit in org-mode.

* Warning
As reddit no longer provides free APIs, this package may stop working in the near future.

* Install
MELPA

[[https://melpa.org/#/reddigg][file:https://melpa.org/packages/reddigg-badge.svg]]

Spacemacs layer:

https://github.com/thanhvg/spacemacs-eos

* Buffers
There are three buffers which are on org-mode. They show links and elisp
commands which will run when you enter/click (~org-open-at-point~) on them. By
default org-mode will ask you for confirmation. You can disable it:

#+begin_example elsip
(setq org-confirm-elisp-link-function nil)
#+end_example

Or change it to ‘y-or-n-p’ if you want to confirm with a single keystroke rather
than having to type "yes".

~*reddigg-main*~: show your subreddit list, enter on them will fetch the
subreddit posts and show them on ~*reddigg*~. On ~*reddigg*~ when you enter on a
post will fetch the comments and show them on ~*reddigg-comments*~ buffer.

* Variables
~reddigg-subs~: list of subreddits you want to show on ~*reddigg-main*~
* Commands
~reddigg-view-main~: show your subreddit list in ~*reddigg-main*~, ~r/all~ and
~r/popular~ are included.

~reddigg-view-sub~: prompt for a subreddits and show it,

~reddigg-view-frontpage~: view frontpage

~reddigg-view-comments~: prompt for a post (eg:
~r/emacs/comments/lfww57/weekly_tipstricketc_thread/~ or
~https://www.reddit.com/r/emacs/comments/lfww57/weekly_tipstricketc_thread/~) and
show it.
* Remarks
This mode only lets you view reddit. For a complete interaction with reddit check
out https://github.com/ahungry/md4rd.