Emacs : elfeed package add

This commit is contained in:
2023-06-02 15:43:59 +09:00
parent 6bc89a4ae5
commit 5fd2a544e1
8 changed files with 17 additions and 51 deletions

View File

@ -14,16 +14,16 @@ scrolling:
history: 10000
font:
normal:
family: Mononoki Nerd Font
family: Comic Shanns Mono Nerd Font
style: Regular
bold:
family: Mononoki Nerd Font
family: Comic Shanns Mono Nerd Font
style: Bold
italic:
family: Mononoki Nerd Font
family: Comic Shanns Mono Nerd Font
style: Italic
bold_italic:
family: Mononoki Nerd Font
family: Comic Shanns Mono Nerd Font
style: Bold Italic
# Point size
size: 16.0

View File

@ -21,10 +21,10 @@
;; Quick sort dired buffers via hydra
(use-package dired-quick-sort
:defer t
:hook (after-init . dired-quick-sort-setup)
:config
(evil-collection-define-key 'normal 'dired-mode-map
"S" 'hydra-dired-quick-sort/body))
"s" 'hydra-dired-quick-sort/body))
;; Show git info in dired
(use-package dired-git-info)

View File

@ -363,7 +363,7 @@ prepended to the element after the #+HEADER: tag."
(defun my/org-roam-refresh-agenda-list ()
(interactive)
(setq org-agenda-files (my/org-roam-list-notes-by-tag "Project"))
(add-to-list 'org-agenda-files custom-org-agenda-files))
(add-to-list 'org-agenda-files custom-org-agenda-file))
(defun my/org-roam-project-finalize-hook ()
"Adds the captured project file to `org-agenda-files' if the
capture was not aborted."

View File

@ -97,52 +97,15 @@
(evil-collection-define-key 'normal 'elfeed-search-mode-map "?" 'elfeed-hydra/body)
(evil-collection-define-key 'normal 'elfeed-show-mode-map "q" 'delete-window)
;; Ignore db directory in recentf
(push elfeed-db-directory recentf-exclude)
(push elfeed-db-directory recentf-exclude))
;; Use xwidget if possible
(with-no-warnings
(defun my-elfeed-show-visit (&optional use-generic-p)
"Visit the current entry in your browser using `browse-url'.
If there is a prefix argument, visit the current entry in the
browser defined by `browse-url-generic-program'."
(interactive "P")
(let ((link (elfeed-entry-link elfeed-show-entry)))
(when link
(message "Sent to browser: %s" link)
(cond
((featurep 'xwidget-internal)
(centaur-webkit-browse-url link))
(use-generic-p
(browse-url-generic link))
(t (browse-url link))))))
(advice-add #'elfeed-show-visit :override #'my-elfeed-show-visit)
(defun my-elfeed-search-browse-url (&optional use-generic-p)
"Visit the current entry in your browser using `browse-url'.
If there is a prefix argument, visit the current entry in the
browser defined by `browse-url-generic-program'."
(interactive "P")
(let ((entries (elfeed-search-selected)))
(cl-loop for entry in entries
do (elfeed-untag entry 'unread)
when (elfeed-entry-link entry)
do (cond
((featurep 'xwidget-internal)
(centaur-webkit-browse-url it t))
(use-generic-p
(browse-url-generic it))
(t (browse-url it))))
(mapc #'elfeed-search-update-entry entries)
(unless (or elfeed-search-remain-on-entry (use-region-p))
(forward-line))))
(advice-add #'elfeed-search-browse-url :override #'my-elfeed-search-browse-url)))
(use-package elfeed-goodies
:defer t)
:hook (after-init . elfeed-goodies/setup))
(use-package elfeed-org
:defer t
:hook (after-init . elfeed-org)
:config
(elfeed-org)
(setq rmh-elfeed-org-files (list (expand-file-name "elfeed.org" org-directory))))
;; (elfeed-org))
(provide 'init-reader)
;;; init-reader.el ends here

View File

@ -41,7 +41,7 @@
("x" ztree-toggle-expand-subtree "expand/collapse" :exit t)
("<backspace>" ztree-move-up-in-tree "go to parent" :exit t))))
:bind (:map ztreediff-mode-map
("C-<f5>" . ztree-hydra/body))
("<f6>" . ztree-hydra/body))
:init (setq ztree-draw-unicode-lines t
ztree-show-number-of-children t))

View File

@ -48,4 +48,6 @@ alias l.='exa -a | egrep "^\."'
export PYTHONSTARTUP=/home/jaeus/scripts/my_imports.py
starship init fish | source
cat ~/.cache/wal/sequences &
#atuin init fish | source

View File

@ -2,7 +2,8 @@
#"Pausing" sxhkd
super+Return
st
# st
alacritty
#Apps and programs
super+e
emacs --debug-init

View File

@ -57,7 +57,7 @@ git clone https://git.jaeus.net/walls
##################################################
# Fonts
##################################################
paru -S ttf-firacode-nerd ttf-momonoki-nerd ttf-times-new-roman ttf-nanum noto-fonts-emoji ttf-symbola noto-font-cjk --noconfirm
paru -S ttf-firacode-nerd ttf-momonoki-nerd otf-comicsshanns-nerd ttf-times-new-roman ttf-nanum noto-fonts-emoji ttf-symbola noto-font-cjk --noconfirm
##################################################
# Window Manager
##################################################