aboutsummaryrefslogtreecommitdiff
path: root/doom.d/modules/writers.org
blob: cc934ac6b4cc9b3dec1689ddfb387336018ef1f2 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#+TITLE: Writers module

* Thesaurus
#+BEGIN_SRC elisp
(use-package! powerthesaurus
  :after-call (pre-command-hook text-mode)
  :defer-incrementally (org)
  :config
  (map!
   :localleader
   :map org-mode-map
   :prefix "w"
   :desc "Thesaurus" "t" #'powerthesaurus-lookup-word-at-point))
#+END_SRC
Powerthesaurus for thesaurus on writer files
* Spelling checker
#+BEGIN_SRC elisp
(use-package! flyspell
  :after-call (pre-command-hook text-mode)
  :defer-incrementally (org)
  :config
  (map!
   :localleader
   :map org-mode-map
   :prefix "w"
   :desc "Correct current word" "c" #'flyspell-correct-at-point
   :desc "Autocorrect word"     "a" #'flyspell-auto-correct-word
   :desc "Goto next error"      "w" #'flyspell-goto-next-error))
#+END_SRC
* Darkroom
#+BEGIN_SRC elisp
(use-package! darkroom-mode
  :defer-incrementally (text-mode org-mode)
  :config
  (map!
   :localleader
   :map org-mode-map
   :prefix "w"
   :desc "Darkroom" "d" #'darkroom-mode))
#+END_SRC
* Org
** Org
#+BEGIN_SRC elisp
(after! org
  (setq org-agenda-files "~/Text")
  (setq org-directory "~/Text")
  (map! ; Org keybinds
   :map org-mode-map
   :localleader
   :desc "Org dispatch"      "e" #'org-export-dispatch
   :desc "Export to ODT"     "E"  #'org-pandoc-export-to-odt
   (:prefix ("N" . "+narrow")
     :desc "Narrow to subtree" "n" #'org-narrow-to-subtree
     :desc "Go out of narrow"  "o" #'widen
     :desc "Narrow tags"       "t" #'org-tags-sparse-tree)))
#+END_SRC
I like using the org dispatch facilities more than the default export keybinds
in Doom, so I need this binding
** Org calendar
#+BEGIN_SRC elisp
(use-package! org-gcal
  :after-call (org-agenda)
  :hook (org-agenda-mode-hook calendar-load-hook)
  :config
  (setq org-gcal-client-id (password-store-get "GoogleCalendar/id"))
  (setq org-gcal-client-secret (password-store-get "GoogleCalendar/secret"))
  (setq org-gcal-file-alist '(("aryadevchavali1@gmail.com" .  "~/Text/schedule.org"))))
#+END_SRC