Files
dotfiles/doom.d/modules/writers.org
2019-12-31 00:31:23 +00:00

1.9 KiB

Writers module

Thesaurus

(use-package! powerthesaurus
  :after-call (pre-command-hook text-mode)
  :defer-incrementally org-mode
  :config
  (map!
   :localleader
   :map org-mode-map
   :prefix "w"
   :desc "Thesaurus" "t" #'powerthesaurus-lookup-word-at-point))

Powerthesaurus for thesaurus on writer files

Spelling checker

(use-package! flyspell
  :after-call (pre-command-hook text-mode)
  :defer-incrementally org-mode
  :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))

Darkroom

(use-package! darkroom-mode
  :defer-incrementally (text-mode org-mode)
  :config
  (map!
   :localleader
   :map org-mode-map
   :prefix "w"
   :desc "Darkroom" "d" #'darkroom-mode))

Org

Org

(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)))

I like using the org dispatch facilities more than the default export keybinds in Doom, so I need this binding

Org calendar

(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"))))