~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.
This commit is contained in:
@@ -28,20 +28,20 @@ Powerthesaurus for thesaurus on writer files
|
|||||||
* Org
|
* Org
|
||||||
** Org
|
** Org
|
||||||
#+BEGIN_SRC elisp
|
#+BEGIN_SRC elisp
|
||||||
(after! org
|
(setq org-directory "~/Text"
|
||||||
(setq org-directory "~/Text"
|
org-agenda-files (directory-files-recursively org-directory ".org"))
|
||||||
org-agenda-files (directory-files-recursively org-directory ".org"))
|
(map! ; Org keybinds
|
||||||
(add-hook! org-mode-hook #'flyspell-mode)
|
:after org
|
||||||
(map! ; Org keybinds
|
:map org-mode-map
|
||||||
:map org-mode-map
|
:localleader
|
||||||
:localleader
|
:desc "Org dispatch" "e" #'org-export-dispatch
|
||||||
:desc "Org dispatch" "e" #'org-export-dispatch
|
:desc "Export to ODT" "E" #'org-pandoc-export-to-odt
|
||||||
: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 "Narrow to subtree" "n" #'org-narrow-to-subtree
|
:desc "Go out of narrow" "o" #'widen
|
||||||
:desc "Go out of narrow" "o" #'widen
|
:desc "Narrow tags" "t" #'org-tags-sparse-tree))
|
||||||
:desc "Narrow tags" "t" #'org-tags-sparse-tree)))
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
I like using the org dispatch facilities more than the default export keybinds
|
I like using the org dispatch facilities more than the default export keybinds
|
||||||
in Doom, so I need this binding
|
in Doom, so I need this binding
|
||||||
** Org calendar
|
** Org calendar
|
||||||
|
|||||||
Reference in New Issue
Block a user