From c49083a5938b91670f5364473bf1795f3a05ed43 Mon Sep 17 00:00:00 2001 From: AChavali Date: Sat, 8 Feb 2020 13:23:32 +0000 Subject: ~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. --- doom.d/modules/writers.org | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'doom.d/modules') 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 -- cgit v1.2.3-13-gbd6f