Skip to content

Instantly share code, notes, and snippets.

@dmj
Created December 12, 2009 15:14
Show Gist options
  • Save dmj/254923 to your computer and use it in GitHub Desktop.
Save dmj/254923 to your computer and use it in GitHub Desktop.
;; Shimbun
;; Setup Feeds based on ~/.feeds
(let ((feedbuf (find-file-noselect "~/.feeds")))
(with-current-buffer feedbuf
(goto-char (point-min))
(while (re-search-forward "^\\([a\\|r]\\) \\([[:alnum:]]+\\) \\(.+\\)$" nil t)
(let ((sha (sha1-string (match-string 3))))
(cond
((equal (match-string 1) "a")
(add-to-list 'shimbun-atom-hash-group-path-alist
(list (match-string 2)
(concat "file:///home/david/.feeds_cache/" sha)
t)))
((equal (match-string 1) "r")
(add-to-list 'shimbun-rss-hash-group-path-alist
(list (match-string 2)
(concat "file:///home/david/.feeds_cache/" sha)
t))))))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment