~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.
This commit is contained in:
@@ -15,15 +15,14 @@
|
|||||||
Powerthesaurus for thesaurus on writer files
|
Powerthesaurus for thesaurus on writer files
|
||||||
* Spelling checker
|
* Spelling checker
|
||||||
#+BEGIN_SRC elisp
|
#+BEGIN_SRC elisp
|
||||||
(use-package! flyspell
|
(map!
|
||||||
:config
|
:after (flyspell org)
|
||||||
(map!
|
:localleader
|
||||||
:localleader
|
:map org-mode-map
|
||||||
:map org-mode-map
|
:prefix "w"
|
||||||
:prefix "w"
|
:desc "Correct current word" "c" #'flyspell-correct-at-point
|
||||||
:desc "Correct current word" "c" #'flyspell-correct-at-point
|
:desc "Autocorrect word" "a" #'flyspell-auto-correct-word
|
||||||
:desc "Autocorrect word" "a" #'flyspell-auto-correct-word
|
:desc "Goto next error" "w" #'flyspell-goto-next-error)
|
||||||
:desc "Goto next error" "w" #'flyspell-goto-next-error))
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
* Org
|
* Org
|
||||||
** Org
|
** Org
|
||||||
|
|||||||
Reference in New Issue
Block a user