aboutsummaryrefslogtreecommitdiff
path: root/doom.d/modules/writers.org
diff options
context:
space:
mode:
authorAChavali <aryadevchavali1@gmail.com>2020-02-08 13:23:32 +0000
committerAChavali <aryadevchavali1@gmail.com>2020-02-08 13:23:32 +0000
commitc49083a5938b91670f5364473bf1795f3a05ed43 (patch)
tree7dbfc5ab874becbc20adeb028d9cf4ddf3221c5c /doom.d/modules/writers.org
parentb0d231425b90c56f495e475e53a5e0bf5ec55e34 (diff)
downloaddotfiles-c49083a5938b91670f5364473bf1795f3a05ed43.tar.gz
dotfiles-c49083a5938b91670f5364473bf1795f3a05ed43.tar.bz2
dotfiles-c49083a5938b91670f5364473bf1795f3a05ed43.zip
~setup variables outside of (after! org)
org-directory and org-agenda-files are annoying to setup and are vital to using emacs for me. I don't load org-mode files necessarily before using these variables. Thus, set them outside of the (after! org) call, then do the mapping inside (after! org) because this is a very important system.
Diffstat (limited to 'doom.d/modules/writers.org')
-rw-r--r--doom.d/modules/writers.org26
1 files changed, 13 insertions, 13 deletions
diff --git a/doom.d/modules/writers.org b/doom.d/modules/writers.org
index cfe6fb2..c45a783 100644
--- a/doom.d/modules/writers.org
+++ b/doom.d/modules/writers.org
@@ -28,20 +28,20 @@ Powerthesaurus for thesaurus on writer files
* Org
** Org
#+BEGIN_SRC elisp
-(after! org
- (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")
- :desc "Narrow to subtree" "n" #'org-narrow-to-subtree
- :desc "Go out of narrow" "o" #'widen
- :desc "Narrow tags" "t" #'org-tags-sparse-tree)))
+(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