Update emacs.org
This commit is contained in:
parent
dda5d3794b
commit
87d9b5f9cd
1 changed files with 35 additions and 31 deletions
|
@ -2785,44 +2785,48 @@ Dired is a built-in file manager for Emacs that does some pretty amazing things!
|
||||||
#+end_src
|
#+end_src
|
||||||
** RSS Reader
|
** RSS Reader
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package elfeed)
|
(use-package elfeed)
|
||||||
|
|
||||||
(use-package elfeed-goodies
|
(use-package elfeed-goodies
|
||||||
:after elfeed
|
:after elfeed
|
||||||
:ensure t
|
:ensure t
|
||||||
:init
|
:init
|
||||||
(elfeed-goodies/setup)
|
(elfeed-goodies/setup)
|
||||||
)
|
)
|
||||||
|
|
||||||
(use-package elfeed-protocol
|
(use-package elfeed-protocol
|
||||||
:after elfeed
|
:after elfeed
|
||||||
:ensure t
|
:ensure t
|
||||||
:config
|
:config
|
||||||
;; curl recommend
|
;; curl recommend
|
||||||
(setq elfeed-use-curl t)
|
(setq elfeed-use-curl t)
|
||||||
(elfeed-set-timeout 36000)
|
(elfeed-set-timeout 36000)
|
||||||
(setq elfeed-curl-extra-arguments '("--insecure")) ;necessary for https without a trust certificate
|
(setq elfeed-curl-extra-arguments '("--insecure")) ;necessary for https without a trust certificate
|
||||||
|
|
||||||
;; setup feeds
|
;; workaround for smth
|
||||||
(setq elfeed-protocol-feeds '(("fever+https://sako@rss.sako.box"
|
(setq elfeed-protocol-fever-update-unread-only t)
|
||||||
:api-url "https://rss.sako.box/api/fever.php"
|
|
||||||
:use-authinfo t)))
|
|
||||||
|
|
||||||
;; enable elfeed-protocol
|
;; setup feeds
|
||||||
(setq elfeed-protocol-enabled-protocols '(fever newsblur owncloud ttrss))
|
(setq elfeed-protocol-feeds '(("fever+https://sako@rss.sako.box"
|
||||||
(elfeed-protocol-enable)
|
:api-url "https://rss.sako.box/api/fever.php"
|
||||||
)
|
:use-authinfo t)))
|
||||||
|
|
||||||
(let* ((proto-id "fever+https://sako@https://rss.sako.box")
|
;; enable elfeed-protocol
|
||||||
(last-id (elfeed-protocol-fever-get-update-mark proto-id 'update)))
|
(setq elfeed-protocol-enabled-protocols '(fever newsblur owncloud ttrss))
|
||||||
(elfeed-protocol-fever-set-update-mark proto-id 'update (- last-id 1000)))
|
(elfeed-protocol-enable)
|
||||||
|
)
|
||||||
|
|
||||||
(run-at-time 300 300
|
(let* ((proto-id "fever+https://sako@rss.sako.box")
|
||||||
(lambda () (when (= elfeed-curl-queue-active 0)
|
(last-id (elfeed-protocol-fever-get-update-mark proto-id 'update)))
|
||||||
(elfeed-update))))
|
(elfeed-protocol-fever-set-update-mark proto-id 'update (- last-id 1000)))
|
||||||
|
|
||||||
(add-hook 'elfeed-search-mode-hook 'elfeed-protocol-fever-reinit "fever+https://sako@https://rss.sako.box")
|
(run-at-time 300 300
|
||||||
#+end_src
|
(lambda () (when (= elfeed-curl-queue-active 0)
|
||||||
|
(elfeed-update))))
|
||||||
|
|
||||||
|
(add-hook 'emacs-startup-hook elfeed-update)
|
||||||
|
|
||||||
|
#+end_src
|
||||||
* Org Mode Configuration Setup
|
* Org Mode Configuration Setup
|
||||||
** Babel Languages
|
** Babel Languages
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
|
|
Loading…
Reference in a new issue