Git Product home page Git Product logo

owncloud-news's Introduction

Introduction
------------

This is the emacs mode for reading feeds from an owncloud instance
running the News app.  The following features are currently supported:

- fetching unread articles

- explicitly marking articles as read

- adding new feeds

Requirements
------------

* emacs 24 or greater is required.  Older versions might work, but
  owncloud-news.el depends on json.el.  If you are using an older
  emacs version, get json.el and arrange so it is loaded before
  owncloud-news.el.

* /usr/bin/curl.  owncloud-news.el uses curl to talk to the owncloud
  News REST API.

* /usr/bin/elinks.  owncloud-news.el uses elinks to render articles as
  text.

Installation
------------

* Add the directory containing owncloud-news.el to your load-path

* Add this to your emacs initialization:

    (require 'owncloud-news)

* Set owncloud-news-path to point to the URL for the News API in your
  owncloud instance.  This will be something like
  https://<hostname>/index.php/apps/news/api/v1-2

Authentication
--------------

owncloud-news.el relies on authentication being configured in
~/.netrc.  You need to have an entry of the form:

  machine <hostname-for-owncloud>
    login <username>
    password <password>

in your ~/.netrc file.

Usage
-----

Run M-x oc-news to fetch all unread articles.  Articles get rendered
into a buffer derived from org-mode.  You can use <TAB> to expand
articles.

If an article has images, you can run M-x oc-news/render (bound to C-c
C-b by default) to render the article content as HTML.

The URL for the article can be opened in a browser by running M-x
oc-news/open-in-browser (bound to C-c C-u by default).  This uses
browse-url to run a browser, so the configuration of that will decide
which browser is run.

To mark articles as read, set region around the articles to be marked,
and run M-x oc-news-done.

owncloud-news's People

Contributors

kushal-kumaran avatar

Watchers

 avatar James Cloos avatar

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.