Fix feeds file/directory shortcut

Was pointing to old feeds file (doesn't exist any more), now pulls
value directly from rmh-elfeed-org-files variable
This commit is contained in:
Evie Litherland-Smith 2024-03-30 10:31:39 +00:00
parent 160b52ee99
commit c1f0521488

View file

@ -60,17 +60,17 @@
(find-file (car org-cite-global-bibliography)))
(keymap-global-set "C-c w b" #'my/open-global-bibliography)
#+end_src
** RSS feeds file
** RSS feeds directory
#+begin_src emacs-lisp
;; Elfeed feeds file shortcut
(defun my/open-feeds-file ()
"Open org file containing elfeed sources."
;; Elfeed feeds directory shortcut
(defun my/open-feeds-directory ()
"Open directory containing elfeed sources."
(interactive)
(require 'org)
(require 'elfeed)
(require 'elfeed-org)
(find-file (expand-file-name "feeds.org" org-directory)))
(keymap-global-set "C-c w f" #'my/open-feeds-file)
(find-file (file-name-directory (car rmh-elfeed-org-files))))
(keymap-global-set "C-c w f" #'my/open-feeds-directory)
#+end_src
** Documents and Downloads
#+begin_src emacs-lisp