AHJIASDHJKSDHA

This commit is contained in:
Sakooooo 2024-01-27 12:15:43 +04:00
parent 6709f31bbe
commit 79d6faf3f5
Signed by: sako
GPG key ID: FE52FD65B76E4751

View file

@ -1227,6 +1227,7 @@ 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
(when (eq system-type 'gnu/linux)
(use-package elfeed (use-package elfeed
:config :config
(setq elfeed-use-curl t) (setq elfeed-use-curl t)
@ -1245,8 +1246,8 @@ Dired is a built-in file manager for Emacs that does some pretty amazing things!
;; setup feeds ;; setup feeds
(setq elfeed-protocol-feeds '(("fever+https://sako@rss.sako.box" (setq elfeed-protocol-feeds '(("fever+https://sako@rss.sako.box"
:api-url "https://rss.sako.box/fever/" :api-url "https://rss.sako.box/fever/"
:use-authinfo t))) :use-authinfo t)))
;; enable elfeed-protocol ;; enable elfeed-protocol
(setq elfeed-protocol-enabled-protocols '(fever)) (setq elfeed-protocol-enabled-protocols '(fever))
@ -1254,14 +1255,15 @@ Dired is a built-in file manager for Emacs that does some pretty amazing things!
) )
(let* ((proto-id "fever+https://sako@rss.sako.box") (let* ((proto-id "fever+https://sako@rss.sako.box")
(last-id (elfeed-protocol-fever-get-update-mark proto-id 'update))) (last-id (elfeed-protocol-fever-get-update-mark proto-id 'update)))
(elfeed-protocol-fever-set-update-mark proto-id 'update (- last-id 1000))) (elfeed-protocol-fever-set-update-mark proto-id 'update (- last-id 1000)))
(run-at-time 300 300 (run-at-time 300 300
(lambda () (when (= elfeed-curl-queue-active 0) (lambda () (when (= elfeed-curl-queue-active 0)
(elfeed-update)))) (elfeed-update))))
;; (add-hook 'emacs-startup-hook (elfeed-update)) ;; (add-hook 'emacs-startup-hook (elfeed-update))
)
#+end_src #+end_src
** Telegram ** Telegram