summaryrefslogtreecommitdiff
path: root/lisp/td-writing.el
blob: 540c114ae9e2273497b7e50be457a4539a0ef3b4 (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
27
28
29
30
31
32
;;; td-writing.el --- writing environment -*- lexical-binding: t; -*-

;;; Code:

(use-package jinx
  :ensure t
  :hook ((org-mode  . jinx-mode)
         (text-mode . jinx-mode))
  :bind (("M-$"   . jinx-correct)
         ("C-M-$" . jinx-languages))
  :custom
  ;; https://github.com/minad/corfu/discussions/457
  (text-mode-ispell-word-completion nil))

(use-package writegood-mode
  :ensure t
  :hook (jinx-mode . writegood-mode))

(use-package olivetti
  :ensure t
  :defer t
  :hook ((markdown-mode . olivetti-mode)
         (org-mode      . olivetti-mode))
  :init
  (setq olivetti-body-width 80))

(use-package markdown-mode
  :ensure t
  :defer t)

(provide 'td-writing)
;;; td-writing.el ends here