From 8facce2ba3e491884c0165de3b58768af271c49d Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Mon, 31 May 2021 18:48:18 +0200 Subject: [PATCH] config/doom: nov.el for ebooks --- .config/doom/config.el | 5 ++++- .config/doom/packages.el | 1 + .config/doom/snippets/org-mode/reading-list-book | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.config/doom/config.el b/.config/doom/config.el index 607db58..5ecb410 100644 --- a/.config/doom/config.el +++ b/.config/doom/config.el @@ -390,7 +390,10 @@ Version 2019-11-04 2021-02-16" :config (add-to-list 'auto-mode-alist (cons "\\.adoc\\'" 'adoc-mode)) ) - +(use-package! nov + :config + (add-to-list 'auto-mode-alist '("\\.epub\\'" . nov-mode)) + ) (use-package! lilypond-mode :config (setq LilyPond-pdf-command "xdg-open") diff --git a/.config/doom/packages.el b/.config/doom/packages.el index cc2c11d..3862e29 100644 --- a/.config/doom/packages.el +++ b/.config/doom/packages.el @@ -58,6 +58,7 @@ (package! direnv) ; directory-local environment for haskell-nix things (package! plantuml-mode) ; Diagrams (package! adoc-mode) ; Asciidoc, a md alternative +(package! nov) ; epub reader (package! evil-tutor) diff --git a/.config/doom/snippets/org-mode/reading-list-book b/.config/doom/snippets/org-mode/reading-list-book index 89fee2a..22e908c 100644 --- a/.config/doom/snippets/org-mode/reading-list-book +++ b/.config/doom/snippets/org-mode/reading-list-book @@ -8,7 +8,7 @@ INTEREST $1 :Author: ${2:+} :Buch7: https://www.buch7.de/suche?search=${1:$(replace-regexp-in-string " " "+" yas-text)}+${2:$(replace-regexp-in-string " " "+" yas-text)}&bindings%5B%5D=Taschenbuch&bindings%5B%5D=Gebunden&bindings%5B%5D=Leinen+%28Buchleinen%29&bindings%5B%5D=Softcover-Buch&items_per_page=50 :Amazon: https://smile.amazon.de/s?k=${1:$(replace-regexp-in-string " " "+" yas-text)}+${2:$(replace-regexp-in-string " " "+" yas-text)}&rh=n%3A186606 -:LibErlangen: https://stadtbibliothek-recherche.erlangen.de/Mediensuche/Einfache-Suche?search=${1:$(replace-regexp-in-string " " "+" yas-text)}+${2:$(replace-regexp-in-string " " "+" yas-text)}&top=y&facets=v_____Sachb%C3%BCcher%7CJugendsachbuch%7CJugendroman%7CBuch+Romane%7CSachb%C3%BCcher+Weih.%2fOst&facetsc=_____15 +:LibErlangen: https://stadtbibliothek-recherche.erlangen.de/Mediensuche/Einfache-Suche?search=${1:$(replace-regexp-in-string " " "+" yas-text)}+${2:$(replace-regexp-in-string " " "+" yas-text)}&top=y&facets=v_____Sachb%C3%BCcher%7CJugendsachbuch%7CJugendroman%7CBuch+Romane%7CSachb%C3%BCcher+Weih.%2fOst&facetsc=_____15&pagesize=20 :Ebay: https://www.ebay.de/sch/i.html?_nkw=${1:$(replace-regexp-in-string " " "+" yas-text)}+${2:$(replace-regexp-in-string " " "+" yas-text)}&_sop=15 :gebraucht-kaufen: https://www.gebraucht-kaufen.de/f/search?query=${1:$(replace-regexp-in-string " " "+" yas-text)}+${2:$(replace-regexp-in-string " " "+" yas-text)} :END: \ No newline at end of file