diff options
author | AChavali <aryadevchavali1@gmail.com> | 2020-02-09 12:32:01 +0000 |
---|---|---|
committer | AChavali <aryadevchavali1@gmail.com> | 2020-02-09 12:32:01 +0000 |
commit | 55dfa4f0d9c3fad339848aa1f218c27cde909fdb (patch) | |
tree | 0fed2876ff7de5a4215d6eb0e61cb1753316c7a7 /doom.d/modules/writers.org | |
parent | f9e9f48c75a48a8ff4d391499b6af193121938a5 (diff) | |
download | dotfiles-55dfa4f0d9c3fad339848aa1f218c27cde909fdb.tar.gz dotfiles-55dfa4f0d9c3fad339848aa1f218c27cde909fdb.tar.bz2 dotfiles-55dfa4f0d9c3fad339848aa1f218c27cde909fdb.zip |
~flyspell is in a map! call
Instead of using "use-package!" which will handle loading stuff,
flyspell is already in the hook for org mode. Therefore, inherently,
org-mode and flyspell will be loaded automatically in tandem. So I just
made a map! call that will run after flyspell and org have been loaded,
then just set-up the key binds itself.
Diffstat (limited to 'doom.d/modules/writers.org')
-rw-r--r-- | doom.d/modules/writers.org | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/doom.d/modules/writers.org b/doom.d/modules/writers.org index c45a783..825a7b0 100644 --- a/doom.d/modules/writers.org +++ b/doom.d/modules/writers.org @@ -15,15 +15,14 @@ Powerthesaurus for thesaurus on writer files * Spelling checker #+BEGIN_SRC elisp -(use-package! flyspell - :config - (map! - :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)) +(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 * Org ** Org |