diff options
author | odave <aryadevchavali1@gmail.com> | 2020-03-17 17:30:23 +0000 |
---|---|---|
committer | odave <aryadevchavali1@gmail.com> | 2020-03-17 17:30:23 +0000 |
commit | 7414e9c7907f5bd9cd1b2b5b889716be47e10d9f (patch) | |
tree | 184d348dbecea56cdf598154f75b17b574b24d3c /doom.d/config/writers.org | |
parent | 9ced0a3677eb55120e71a4c1bf652ea24aadf272 (diff) | |
download | dotfiles-7414e9c7907f5bd9cd1b2b5b889716be47e10d9f.tar.gz dotfiles-7414e9c7907f5bd9cd1b2b5b889716be47e10d9f.tar.bz2 dotfiles-7414e9c7907f5bd9cd1b2b5b889716be47e10d9f.zip |
~modules/*.org -> config/*.org
Moved all org files from modules, which should really just hold modules,
to another location (config). Cleaner and easier to use
Diffstat (limited to 'doom.d/config/writers.org')
-rw-r--r-- | doom.d/config/writers.org | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/doom.d/config/writers.org b/doom.d/config/writers.org new file mode 100644 index 0000000..825a7b0 --- /dev/null +++ b/doom.d/config/writers.org @@ -0,0 +1,55 @@ +#+TITLE: Writers module + +* Thesaurus +#+BEGIN_SRC elisp +(use-package! powerthesaurus + :after-call (org-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 +(map! + :after (flyspell org) + :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 +* Org +** Org +#+BEGIN_SRC elisp +(setq org-directory "~/Text" + org-agenda-files (directory-files-recursively org-directory ".org")) +(map! ; Org keybinds + :after org + :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 +calendar-open-function) + :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 |