mirror of
https://github.com/librephoenix/nixos-config
synced 2025-01-19 07:05:51 +05:30
Setup elfeed + freshrss
This commit is contained in:
parent
9956b987a2
commit
65399ee6d4
|
@ -1216,3 +1216,27 @@ https://github.com/magit/magit/issues/460 (@cpitclaudel)."
|
||||||
(setq +format-on-save-enabled-modes '(not emacs-lisp-mode sql-mode tex-mode latex-mode org-msg-edit-mode nix-mode))
|
(setq +format-on-save-enabled-modes '(not emacs-lisp-mode sql-mode tex-mode latex-mode org-msg-edit-mode nix-mode))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
;; I source my rss from my freshrss instance
|
||||||
|
;; I login with a private elisp file: ~/.emacs.d/freshrss-elfeed.el
|
||||||
|
;; freshrss-elfeed.el looks like this:
|
||||||
|
;;(elfeed-protocol-enable)
|
||||||
|
;;(setq elfeed-use-curl t)
|
||||||
|
;;(setq elfeed-set-timeout 36000)
|
||||||
|
;;(setq elfeed-log-level 'debug)
|
||||||
|
;;(setq elfeed-feeds (list
|
||||||
|
;; (list "fever+https://user@freshrss.example.com"
|
||||||
|
;; :api-url "https://user@freshrss.example.com/api/fever.php"
|
||||||
|
;; :password "mYsUpErCoMpLiCaTeDp@s$w0rD"))))
|
||||||
|
;;(setq main-elfeed-feed "https://user@freshrss.example.com/api/fever.php")
|
||||||
|
|
||||||
|
(if (file-exists-p "~/.emacs.d/freshrss-elfeed.el") (load! "~/.emacs.d/freshrss-elfeed.el"))
|
||||||
|
(setq elfeed-search-filter "@6-months-ago +unread")
|
||||||
|
(setq browse-url-chromium-program "mpv")
|
||||||
|
(setq browse-url-handlers '(("youtube.com" . browse-url-chrome) ("." . browse-url)))
|
||||||
|
(map! :leader :desc "Open elfeed" "O n" #'elfeed)
|
||||||
|
(defun elfeed-full-update ()
|
||||||
|
(interactive)
|
||||||
|
(elfeed-protocol-fever-update main-elfeed-feed)
|
||||||
|
(elfeed-update))
|
||||||
|
(map! :map 'elfeed-search-mode-map :desc "Update elfeed" :n "g R" #'elfeed-full-update)
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
- [[#projectile][Projectile]]
|
- [[#projectile][Projectile]]
|
||||||
- [[#lsp][LSP]]
|
- [[#lsp][LSP]]
|
||||||
- [[#terminal][Terminal]]
|
- [[#terminal][Terminal]]
|
||||||
|
- [[#elfeed][Elfeed]]
|
||||||
- [[#my-initel][My init.el]]
|
- [[#my-initel][My init.el]]
|
||||||
- [[#my-packagesel][My packages.el]]
|
- [[#my-packagesel][My packages.el]]
|
||||||
- [[#nix-integration][Nix Integration]]
|
- [[#nix-integration][Nix Integration]]
|
||||||
|
@ -1464,6 +1465,32 @@ EAF doesn't work on Wayland :(
|
||||||
** Terminal
|
** Terminal
|
||||||
#+BEGIN_SRC emacs-lisp :tangle config.el
|
#+BEGIN_SRC emacs-lisp :tangle config.el
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
** Elfeed
|
||||||
|
#+BEGIN_SRC emacs-lisp :tangle config.el
|
||||||
|
;; I source my rss from my freshrss instance
|
||||||
|
;; I login with a private elisp file: ~/.emacs.d/freshrss-elfeed.el
|
||||||
|
;; freshrss-elfeed.el looks like this:
|
||||||
|
;;(elfeed-protocol-enable)
|
||||||
|
;;(setq elfeed-use-curl t)
|
||||||
|
;;(setq elfeed-set-timeout 36000)
|
||||||
|
;;(setq elfeed-log-level 'debug)
|
||||||
|
;;(setq elfeed-feeds (list
|
||||||
|
;; (list "fever+https://user@freshrss.example.com"
|
||||||
|
;; :api-url "https://user@freshrss.example.com/api/fever.php"
|
||||||
|
;; :password "mYsUpErCoMpLiCaTeDp@s$w0rD"))))
|
||||||
|
;;(setq main-elfeed-feed "https://user@freshrss.example.com/api/fever.php")
|
||||||
|
|
||||||
|
(if (file-exists-p "~/.emacs.d/freshrss-elfeed.el") (load! "~/.emacs.d/freshrss-elfeed.el"))
|
||||||
|
(setq elfeed-search-filter "@6-months-ago +unread")
|
||||||
|
(setq browse-url-chromium-program "mpv")
|
||||||
|
(setq browse-url-handlers '(("youtube.com" . browse-url-chrome) ("." . browse-url)))
|
||||||
|
(map! :leader :desc "Open elfeed" "O n" #'elfeed)
|
||||||
|
(defun elfeed-full-update ()
|
||||||
|
(interactive)
|
||||||
|
(elfeed-protocol-fever-update main-elfeed-feed)
|
||||||
|
(elfeed-update))
|
||||||
|
(map! :map 'elfeed-search-mode-map :desc "Update elfeed" :n "g R" #'elfeed-full-update)
|
||||||
|
#+END_SRC
|
||||||
* My init.el
|
* My init.el
|
||||||
This section is the [[./init.el][init.el]] section, which controls which Doom modules are loaded.
|
This section is the [[./init.el][init.el]] section, which controls which Doom modules are loaded.
|
||||||
|
|
||||||
|
@ -1643,7 +1670,7 @@ This section is the [[./init.el][init.el]] section, which controls which Doom mo
|
||||||
;;emms
|
;;emms
|
||||||
;;everywhere ; *leave* Emacs!? You must be joking
|
;;everywhere ; *leave* Emacs!? You must be joking
|
||||||
;;irc ; how neckbeards socialize
|
;;irc ; how neckbeards socialize
|
||||||
;;(rss +org) ; emacs as an RSS reader
|
rss ; emacs as an RSS reader
|
||||||
;;twitter ; twitter client https://twitter.com/vnought
|
;;twitter ; twitter client https://twitter.com/vnought
|
||||||
|
|
||||||
:config
|
:config
|
||||||
|
@ -1694,6 +1721,9 @@ Any git package can be configured for a particular commit or branch:
|
||||||
(package! olivetti)
|
(package! olivetti)
|
||||||
(package! async)
|
(package! async)
|
||||||
(package! centered-cursor-mode)
|
(package! centered-cursor-mode)
|
||||||
|
(package! elfeed)
|
||||||
|
(package! elfeed)
|
||||||
|
(package! elfeed-protocol)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
* Nix Integration
|
* Nix Integration
|
||||||
In order to have Nix load my Doom Emacs configuration [[./doom.nix][doom.nix]], which I source in the =imports= block of my [[../../../profiles/work/home.nix][home.nix]].
|
In order to have Nix load my Doom Emacs configuration [[./doom.nix][doom.nix]], which I source in the =imports= block of my [[../../../profiles/work/home.nix][home.nix]].
|
||||||
|
|
|
@ -167,7 +167,7 @@
|
||||||
;;emms
|
;;emms
|
||||||
;;everywhere ; *leave* Emacs!? You must be joking
|
;;everywhere ; *leave* Emacs!? You must be joking
|
||||||
;;irc ; how neckbeards socialize
|
;;irc ; how neckbeards socialize
|
||||||
;;(rss +org) ; emacs as an RSS reader
|
rss ; emacs as an RSS reader
|
||||||
;;twitter ; twitter client https://twitter.com/vnought
|
;;twitter ; twitter client https://twitter.com/vnought
|
||||||
|
|
||||||
:config
|
:config
|
||||||
|
|
|
@ -22,3 +22,5 @@
|
||||||
(package! olivetti)
|
(package! olivetti)
|
||||||
(package! async)
|
(package! async)
|
||||||
(package! centered-cursor-mode)
|
(package! centered-cursor-mode)
|
||||||
|
(package! elfeed)
|
||||||
|
(package! elfeed-protocol)
|
||||||
|
|
Loading…
Reference in a new issue