Change to spell-fu and tweak rust analyzer

This commit is contained in:
Nathan McCarty 2022-09-02 19:18:37 -04:00
parent bdae66f3d4
commit f2d805462c
Signed by: thatonelutenist
GPG Key ID: D70DA3DD4D1E9F96
4 changed files with 27 additions and 8 deletions

View File

@ -151,8 +151,13 @@
(use-package! deadgrep
:bind ("C-c s r" . deadgrep))
(after! flyspell
(add-hook 'prog-mode-hook #'flyspell-prog-mode))
(after! spell-fu
(add-hook 'spell-fu-mode
(lambda ()
(spell-fu-dictionary-add (spell-fu-get-ispell-dictionary "en"))
(spell-fu-dictionary-add (spell-fu-get-ispell-dictionary "en-science"))
(spell-fu-dictionary-add (spell-fu-get-ispell-dictionary "en-computers"))))
(bind-key "C-." #'+spell/correct))
(setq org-hide-emphasis-markers t
org-pretty-entities t)
@ -319,7 +324,9 @@ work if it thinks it needs to."
lsp-rust-analyzer-experimental-proc-attr-macros t
lsp-rust-analyzer-proc-macro-enable t
lsp-rust-analyzer-use-rustc-wrapper-for-build-scripts t
lsp-rust-analyzer-import-enforce-granularity t))
lsp-rust-analyzer-import-enforce-granularity t
lsp-rust-analyzer-diagnostics-enable-experimental t
lsp-rust-analyzer-display-chaining-hints t))
(use-package! markdown-mode
:mode ("README\\.md" . gfm-mode)

View File

@ -223,10 +223,15 @@ Ripgrep, but from within emacs
:bind ("C-c s r" . deadgrep))
#+end_src
** Spell Checking
Hook ~flyspell-prog-mode~ into ~prog-mode~
Add in all of our dictionaries
#+begin_src emacs-lisp
(after! flyspell
(add-hook 'prog-mode-hook #'flyspell-prog-mode))
(after! spell-fu
(add-hook 'spell-fu-mode
(lambda ()
(spell-fu-dictionary-add (spell-fu-get-ispell-dictionary "en"))
(spell-fu-dictionary-add (spell-fu-get-ispell-dictionary "en-science"))
(spell-fu-dictionary-add (spell-fu-get-ispell-dictionary "en-computers"))))
(bind-key "C-." #'+spell/correct))
#+end_src
* Org Mode
Improvements to the best mode in emacs
@ -499,7 +504,9 @@ Most of these are defaults, but I like having them explicit for my sanity
lsp-rust-analyzer-experimental-proc-attr-macros t
lsp-rust-analyzer-proc-macro-enable t
lsp-rust-analyzer-use-rustc-wrapper-for-build-scripts t
lsp-rust-analyzer-import-enforce-granularity t))
lsp-rust-analyzer-import-enforce-granularity t
lsp-rust-analyzer-diagnostics-enable-experimental t
lsp-rust-analyzer-display-chaining-hints t))
#+end_src
* Composition
Modes for handling plain text and prose

View File

@ -55,7 +55,7 @@
:checkers
(syntax +childframe) ; tasing you for every semicolon you forget
(spell +flyspell +hunspell +everywhere) ; tasing you for misspelling mispelling
(spell +aspell +everywhere) ; tasing you for misspelling mispelling
:tools
(debugger +lsp) ; stepping through code, to help you add bugs

View File

@ -17,6 +17,11 @@
libnotify
# For flash cards
anki
# For spelling
aspell
aspellDicts.en
aspellDicts.en-science
aspellDicts.en-computers
# Desktop file for org-protocol
(makeDesktopItem {
name = "org-protocol";