Quick fix for elfeed and citar customise not working

Update EMMS binds to remove need for hydra, was overkill anyway

Start adding Gnus config, aim to replace elfeed and mu4e eventually...
This commit is contained in:
Evie Litherland-Smith 2023-11-22 06:30:54 +00:00
parent 89fbcb8af2
commit 8faad955f9
2 changed files with 156 additions and 167 deletions

View file

@ -332,7 +332,10 @@
)) ))
(let ((citar-base-directory "~/References")) (let ((citar-base-directory "~/References"))
(use-package citar (setq citar-bibliography (expand-file-name "main.bib" citar-base-directory)
citar-library-paths (list (expand-file-name "library" citar-base-directory))
citar-notes-paths (list (expand-file-name "notes" citar-base-directory))))
(use-package citar
:ensure t :ensure t
:bind (("C-c o c o" . citar-open)) :bind (("C-c o c o" . citar-open))
:config :config
@ -371,14 +374,10 @@
:function #'citar-is-cited :function #'citar-is-cited
:padding " " :padding " "
:tag "is:cited")) :tag "is:cited"))
:custom (setq citar-indicators (list citar-indicator-files-icons
(citar-bibliography (expand-file-name "main.bib" citar-base-directory))
(citar-library-paths (list (expand-file-name "library" citar-base-directory)))
(citar-notes-paths (list (expand-file-name "notes" citar-base-directory)))
(citar-indicators (list citar-indicator-files-icons
citar-indicator-links-icons citar-indicator-links-icons
citar-indicator-notes-icons citar-indicator-notes-icons
citar-indicator-cited-icons)))) citar-indicator-cited-icons)))
(use-package khalel (use-package khalel
:hook (org-agenda-mode . khalel-import-events) :hook (org-agenda-mode . khalel-import-events)
@ -571,6 +570,8 @@
:ensure t :ensure t
:hook prog-mode) :hook prog-mode)
(setq gnus-select-method '(nnrss "http://www.fsf.org/static/fsforg/rss/news.xml"))
(setq sendmail-program (executable-find "msmtp") (setq sendmail-program (executable-find "msmtp")
send-mail-function #'smtpmail-send-it send-mail-function #'smtpmail-send-it
message-sendmail-f-is-evil t message-sendmail-f-is-evil t
@ -663,21 +664,20 @@
(mu4e-alert-disable-mode-line-display)) (mu4e-alert-disable-mode-line-display))
(let ((elfeed-base-directory "~/.elfeed")) (let ((elfeed-base-directory "~/.elfeed"))
(use-package elfeed (setq elfeed-db-directory (expand-file-name "db" elfeed-base-directory)
elfeed-enclosure-default-dir (expand-file-name "enclosures" elfeed-base-directory)
rmh-elfeed-org-files (list (expand-file-name "feeds.org" elfeed-base-directory))))
(use-package elfeed
:bind (("C-c f f" . elfeed) :bind (("C-c f f" . elfeed)
("C-c f u" . elfeed-update)) ("C-c f u" . elfeed-update))
:hook (elfeed-search-mode . elfeed-update) :hook (elfeed-search-mode . elfeed-update)
:custom
(elfeed-db-directory (expand-file-name "db" elfeed-base-directory))
(elfeed-enclosure-default-dir (expand-file-name "enclosures" elfeed-base-directory))
(rmh-elfeed-org-files (list (expand-file-name "feeds.org" elfeed-base-directory)))
:config :config
(use-package elfeed-org (use-package elfeed-org
:ensure t :ensure t
:config (elfeed-org)) :config (elfeed-org))
(use-package elfeed-tube (use-package elfeed-tube
:ensure t :ensure t
:config (elfeed-tube-setup)))) :config (elfeed-tube-setup)))
(use-package mastodon (use-package mastodon
:commands mastodon :commands mastodon
@ -704,27 +704,20 @@
:custom :custom
(ement-save-sessions t)) (ement-save-sessions t))
(when (require 'emms-setup nil :noerror) (use-package emms
(setq emms-player-list '(emms-player-mpv) :bind (("C-c e e" . emms-smart-browse)
emms-info-functions '(emms-info-native) ("C-c e b" . emms-browser)
emms-source-file-default-directory "~/Music" ("C-c e p" . emms-playlist-mode-go))
emms-lyrics-dir "~/Music/lyrics" :custom
emms-mode-line-icon-color "white") (emms-player-list '(emms-player-mpv))
(emms-info-functions '(emms-info-native))
(emms-source-file-default-directory "~/Music")
(emms-lyrics-dir "~/Music/lyrics")
(emms-mode-line-icon-color "white")
:config
(emms-all) (emms-all)
(add-hook 'emms-player-started-hook #'emms-show) (add-hook 'emms-player-started-hook #'emms-show)
(add-hook 'emms-player-paused-hook #'emms-show) (add-hook 'emms-player-paused-hook #'emms-show))
(when (require 'hydra nil :noerror)
(defhydra emms (global-map "C-c e")
"emms"
("b" emms-smart-browse)
("d" emms-show)
("s" emms-start)
("S" emms-stop)
("n" emms-next)
("p" emms-previous)
("P" emms-pause))))
(use-package subsonic (use-package subsonic
:commands subsonic :commands subsonic

View file

@ -399,9 +399,12 @@ For reference information, see [[https://orgmode.com][Org-mode website]]
)) ))
#+END_SRC #+END_SRC
** Citar ** TODO Citar
#+begin_src emacs-lisp :results output silent #+begin_src emacs-lisp :results output silent
(let ((citar-base-directory "~/References")) (let ((citar-base-directory "~/References"))
(setq citar-bibliography (expand-file-name "main.bib" citar-base-directory)
citar-library-paths (list (expand-file-name "library" citar-base-directory))
citar-notes-paths (list (expand-file-name "notes" citar-base-directory))))
(use-package citar (use-package citar
:ensure t :ensure t
:bind (("C-c o c o" . citar-open)) :bind (("C-c o c o" . citar-open))
@ -441,14 +444,10 @@ For reference information, see [[https://orgmode.com][Org-mode website]]
:function #'citar-is-cited :function #'citar-is-cited
:padding " " :padding " "
:tag "is:cited")) :tag "is:cited"))
:custom (setq citar-indicators (list citar-indicator-files-icons
(citar-bibliography (expand-file-name "main.bib" citar-base-directory))
(citar-library-paths (list (expand-file-name "library" citar-base-directory)))
(citar-notes-paths (list (expand-file-name "notes" citar-base-directory)))
(citar-indicators (list citar-indicator-files-icons
citar-indicator-links-icons citar-indicator-links-icons
citar-indicator-notes-icons citar-indicator-notes-icons
citar-indicator-cited-icons)))) citar-indicator-cited-icons)))
#+end_src #+end_src
** Khalel ** Khalel
@ -683,6 +682,11 @@ For reference information, see [[https://orgmode.com][Org-mode website]]
#+end_src #+end_src
* Internet * Internet
** TODO Gnus
#+begin_src emacs-lisp :tangle yes
(setq gnus-select-method '(nnrss "http://www.fsf.org/static/fsforg/rss/news.xml"))
#+end_src
** TODO Email ** TODO Email
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(setq sendmail-program (executable-find "msmtp") (setq sendmail-program (executable-find "msmtp")
@ -778,24 +782,23 @@ For reference information, see [[https://orgmode.com][Org-mode website]]
#+END_SRC #+END_SRC
** Feeds ** TODO Feeds
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(let ((elfeed-base-directory "~/.elfeed")) (let ((elfeed-base-directory "~/.elfeed"))
(setq elfeed-db-directory (expand-file-name "db" elfeed-base-directory)
elfeed-enclosure-default-dir (expand-file-name "enclosures" elfeed-base-directory)
rmh-elfeed-org-files (list (expand-file-name "feeds.org" elfeed-base-directory))))
(use-package elfeed (use-package elfeed
:bind (("C-c f f" . elfeed) :bind (("C-c f f" . elfeed)
("C-c f u" . elfeed-update)) ("C-c f u" . elfeed-update))
:hook (elfeed-search-mode . elfeed-update) :hook (elfeed-search-mode . elfeed-update)
:custom
(elfeed-db-directory (expand-file-name "db" elfeed-base-directory))
(elfeed-enclosure-default-dir (expand-file-name "enclosures" elfeed-base-directory))
(rmh-elfeed-org-files (list (expand-file-name "feeds.org" elfeed-base-directory)))
:config :config
(use-package elfeed-org (use-package elfeed-org
:ensure t :ensure t
:config (elfeed-org)) :config (elfeed-org))
(use-package elfeed-tube (use-package elfeed-tube
:ensure t :ensure t
:config (elfeed-tube-setup)))) :config (elfeed-tube-setup)))
#+END_SRC #+END_SRC
** Social ** Social
@ -832,34 +835,27 @@ For reference information, see [[https://orgmode.com][Org-mode website]]
#+end_src #+end_src
* [1/2] Media * Media
** TODO EMMS ** EMMS
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(when (require 'emms-setup nil :noerror) (use-package emms
(setq emms-player-list '(emms-player-mpv) :bind (("C-c e e" . emms-smart-browse)
emms-info-functions '(emms-info-native) ("C-c e b" . emms-browser)
emms-source-file-default-directory "~/Music" ("C-c e p" . emms-playlist-mode-go))
emms-lyrics-dir "~/Music/lyrics" :custom
emms-mode-line-icon-color "white") (emms-player-list '(emms-player-mpv))
(emms-info-functions '(emms-info-native))
(emms-source-file-default-directory "~/Music")
(emms-lyrics-dir "~/Music/lyrics")
(emms-mode-line-icon-color "white")
:config
(emms-all) (emms-all)
(add-hook 'emms-player-started-hook #'emms-show) (add-hook 'emms-player-started-hook #'emms-show)
(add-hook 'emms-player-paused-hook #'emms-show) (add-hook 'emms-player-paused-hook #'emms-show))
(when (require 'hydra nil :noerror)
(defhydra emms (global-map "C-c e")
"emms"
("b" emms-smart-browse)
("d" emms-show)
("s" emms-start)
("S" emms-stop)
("n" emms-next)
("p" emms-previous)
("P" emms-pause))))
#+END_SRC #+END_SRC
** DONE subsonic.el ** subsonic.el
#+begin_src emacs-lisp :tangle yes #+begin_src emacs-lisp :tangle yes
(use-package subsonic (use-package subsonic
:commands subsonic :commands subsonic