summaryrefslogtreecommitdiff
path: root/dot_config/emacs/lisp/reading-config.el
blob: 6cbb1478f229ab389510bce52ad469a9dd278b3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
(use-package nov
  :custom
  (nov-text-width t)
  :config
  (add-to-list 'auto-mode-alist '("\\.epub\\'" . nov-mode)))

(use-package pdf-tools
  :ensure t
  :config
  (pdf-tools-install))

(use-package olivetti
  :ensure t
  :init
  (setq olivetti-body-width 120)
  :hook
  (org-mode . olivetti-mode)
  (nov-mode . olivetti-mode))

(use-package flyspell-correct
  :ensure t
  :after flyspell
  :bind (:map flyspell-mode-map
              ("C-;" . flyspell-correct-wrapper)))

(provide 'reading-config)