~moved org stuff into its own section

This commit is contained in:
AChavali
2019-12-30 13:08:36 +00:00
parent 0840012fc1
commit 3159dd93e7

View File

@@ -22,10 +22,6 @@ Setting up variables and basic stuff that doesn't require a lot of work.
(setq truncate-lines t)
(setq display-line-numbers-type nil)
(after! org
(setq org-agenda-files "calendar.org")
(setq org-directory "~/Text"))
(cl-pushnew '("Libgen" . "https://libgen.me/search/all?search=%s") +lookup-provider-url-alist :key #'car)
(display-battery-mode 1)
@@ -327,16 +323,17 @@ Function to quickly check weather, which is what I wanted wttrin for.
- Setup the LSP server on the lsp-language-id-config in case it hasn't already
** Org
#+BEGIN_SRC elisp
(after! org
(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-agenda-files "~/Text")
(setq org-directory "~/Text")
(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))
#+END_SRC
I like using the org dispatch facilities more than the default export keybinds
in Doom, so I need this binding