Ensure elfeed and emms installation in their own sections

This commit is contained in:
Gerard Vermeulen 2022-04-30 11:00:47 +02:00
parent 1887db12e8
commit e78aa66830

View File

@ -214,9 +214,7 @@ The [[info:emacs#Init File][init file (info)]] does not load the ~custom-file~ a
deadgrep ; use ripgrep from Emacs
eglot ; Emacs polyGLOT LSP client
electric-operator ; automatic spacing around operators
elfeed ; web feed reader
embark ; act on any buffer selection
emms ; Emacs Multi-Media System
htmlize ; convert buffer contents to HTML
iedit ; simultaneous multi-entity editing
keycast ; show current command with binding
@ -3644,8 +3642,9 @@ enable =emms=.
#+caption: Configure =elfeed=.
#+name: lst:configure-elfeed
#+begin_src emacs-lisp
(when (ensure-package-installation 'elfeed) ; web feed reader
(when (fboundp 'elfeed)
(global-set-key (kbd "C-x w") #'elfeed)
(global-set-key (kbd "C-x w") #'elfeed))
(with-eval-after-load 'elfeed
(custom-set-variables
@ -3685,6 +3684,7 @@ using =emms= with =elfeed=. Listing [[lst:configure-emms]] configures =emms=.
#+caption: Configure =emms=.
#+name: lst:configure-emms
#+begin_src emacs-lisp
(when (ensure-package-installation 'emms) ; Emacs Multi-Media System
(with-eval-after-load 'emms
(custom-set-variables
'(emms-player-list '(emms-player-mpd emms-player-mpv))))
@ -3715,8 +3715,9 @@ using =emms= with =elfeed=. Listing [[lst:configure-emms]] configures =emms=.
(with-eval-after-load 'emms-streams
(custom-set-variables
`(emms-streams-file ,(no-littering-expand-etc-file-name "emms/streams.emms")))
(emms-all))
`(emms-streams-file
,(no-littering-expand-etc-file-name "emms/streams.emms")))
(emms-all)))
#+end_src
*** Taming spurious buffers