aboutsummaryrefslogtreecommitdiff
path: root/doom.d/org/config.org
diff options
context:
space:
mode:
authorodave <aryadevchavali1@gmail.com>2020-04-06 15:40:33 +0100
committerodave <aryadevchavali1@gmail.com>2020-04-06 15:40:33 +0100
commite958997b2252f43e45da097a2bee5d97dc7f7d88 (patch)
treefe4e63a1f2e13652d14cfd7225944ad5113a7778 /doom.d/org/config.org
parent37136fc985607e5c8ddccd4c8d80c3521305c72f (diff)
downloaddotfiles-e958997b2252f43e45da097a2bee5d97dc7f7d88.tar.gz
dotfiles-e958997b2252f43e45da097a2bee5d97dc7f7d88.tar.bz2
dotfiles-e958997b2252f43e45da097a2bee5d97dc7f7d88.zip
~translated writers.org content into config.org
No point having a separate module for something that is basically part of the config.
Diffstat (limited to 'doom.d/org/config.org')
-rw-r--r--doom.d/org/config.org48
1 files changed, 48 insertions, 0 deletions
diff --git a/doom.d/org/config.org b/doom.d/org/config.org
index 03cb777..e33fe18 100644
--- a/doom.d/org/config.org
+++ b/doom.d/org/config.org
@@ -139,6 +139,32 @@ the interactive menu as well.
:icon (all-the-icons-octicon "bookmark" :face 'font-lock-keyword-face)
:action bookmark-jump)))
#+END_SRC
+** Thesaurus
+Powerthesaurus installation, added a keybind in org-mode for looking up words.
+#+BEGIN_SRC elisp
+(use-package! powerthesaurus
+ :after-call (org-mode)
+ :defer-incrementally (org)
+ :config
+ (map!
+ :localleader
+ :map org-mode-map
+ :prefix "w"
+ :desc "Thesaurus" "t" #'powerthesaurus-lookup-word-at-point))
+#+END_SRC
+Powerthesaurus for thesaurus on writer files
+** Spelling checker
+Keybinds to org-mode for flyspell package
+#+BEGIN_SRC elisp
+(map!
+ :after (flyspell org)
+ :localleader
+ :map org-mode-map
+ :prefix "w"
+ :desc "Correct current word" "c" #'flyspell-correct-at-point
+ :desc "Autocorrect word" "a" #'flyspell-auto-correct-word
+ :desc "Goto next error" "w" #'flyspell-goto-next-error)
+#+END_SRC
* Language Config
Configuration for various languages which I feel can be useful
** C-style languages
@@ -340,6 +366,28 @@ each of the unit tests ran."
(after! fsharp
(setq inferior-fsharp-program "dotnet fsi --readline"))
#+END_SRC
+** Org
+Org configuration to maximise org workflow.
+*** Org variables
+Setup the agenda-files and the org-directory.
+#+BEGIN_SRC elisp
+(after! org
+ (setq org-directory "~/Text"
+ org-agenda-files '("~/Text/")))
+#+END_SRC
+*** Org keymap
+- I like using org-export often, so bind it to a primary bind.
+- Narrowing is important and I use it often, so bind that to a prefix
+#+BEGIN_SRC elisp
+(map! ; Org keybinds
+ :after org
+ :map org-mode-map
+ :localleader
+ :desc "Org dispatch" "e" #'org-export-dispatch
+ (:prefix ("N" . "narrow")
+ :desc "Narrow to subtree" "n" #'org-narrow-to-subtree
+ :desc "Go out of narrow" "o" #'widen))
+#+END_SRC
* Key-map
General keymap for leader
** Personal