aboutsummaryrefslogtreecommitdiff
path: root/doom.d/modules/writers.org
diff options
context:
space:
mode:
authorAChavali <aryadevchavali1@gmail.com>2020-01-17 02:30:57 +0000
committerAChavali <aryadevchavali1@gmail.com>2020-01-17 02:30:57 +0000
commitfebf1879fa6be3c12ad49cb05b1ebfd69a0c4574 (patch)
tree0a1bcc9b249fbc6f40046cbe623bdc5629bf0612 /doom.d/modules/writers.org
parentd7d642bdd94aca6232bfb80dd27c6897e7ef5749 (diff)
downloaddotfiles-febf1879fa6be3c12ad49cb05b1ebfd69a0c4574.tar.gz
dotfiles-febf1879fa6be3c12ad49cb05b1ebfd69a0c4574.tar.bz2
dotfiles-febf1879fa6be3c12ad49cb05b1ebfd69a0c4574.zip
~clean up writers module
:after-call specifically for org mode now setqs are preserved for one use only
Diffstat (limited to 'doom.d/modules/writers.org')
-rw-r--r--doom.d/modules/writers.org11
1 files changed, 6 insertions, 5 deletions
diff --git a/doom.d/modules/writers.org b/doom.d/modules/writers.org
index f68b6c5..c450d14 100644
--- a/doom.d/modules/writers.org
+++ b/doom.d/modules/writers.org
@@ -3,7 +3,7 @@
* Thesaurus
#+BEGIN_SRC elisp
(use-package! powerthesaurus
- :after-call (pre-command-hook text-mode)
+ :after-call (org-mode)
:defer-incrementally (org)
:config
(map!
@@ -16,7 +16,7 @@ Powerthesaurus for thesaurus on writer files
* Spelling checker
#+BEGIN_SRC elisp
(use-package! flyspell
- :after-call (pre-command-hook text-mode)
+ :after-call (org-mode)
:defer-incrementally (org)
:config
(map!
@@ -31,14 +31,15 @@ Powerthesaurus for thesaurus on writer files
** Org
#+BEGIN_SRC elisp
(after! org
- (setq org-agenda-files "~/Text")
- (setq org-directory "~/Text")
+ (setq org-directory "~/Text"
+ org-agenda-files (directory-files-recursively org-directory ".org"))
+ (add-hook! org-mode-hook #'flyspell-mode)
(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")
+ (: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)))