Change to spell-fu and tweak rust analyzer
This commit is contained in:
parent
bdae66f3d4
commit
f2d805462c
|
@ -151,8 +151,13 @@
|
||||||
(use-package! deadgrep
|
(use-package! deadgrep
|
||||||
:bind ("C-c s r" . deadgrep))
|
:bind ("C-c s r" . deadgrep))
|
||||||
|
|
||||||
(after! flyspell
|
(after! spell-fu
|
||||||
(add-hook 'prog-mode-hook #'flyspell-prog-mode))
|
(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
|
(setq org-hide-emphasis-markers t
|
||||||
org-pretty-entities 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-experimental-proc-attr-macros t
|
||||||
lsp-rust-analyzer-proc-macro-enable t
|
lsp-rust-analyzer-proc-macro-enable t
|
||||||
lsp-rust-analyzer-use-rustc-wrapper-for-build-scripts 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
|
(use-package! markdown-mode
|
||||||
:mode ("README\\.md" . gfm-mode)
|
:mode ("README\\.md" . gfm-mode)
|
||||||
|
|
|
@ -223,10 +223,15 @@ Ripgrep, but from within emacs
|
||||||
:bind ("C-c s r" . deadgrep))
|
:bind ("C-c s r" . deadgrep))
|
||||||
#+end_src
|
#+end_src
|
||||||
** Spell Checking
|
** Spell Checking
|
||||||
Hook ~flyspell-prog-mode~ into ~prog-mode~
|
Add in all of our dictionaries
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(after! flyspell
|
(after! spell-fu
|
||||||
(add-hook 'prog-mode-hook #'flyspell-prog-mode))
|
(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
|
#+end_src
|
||||||
* Org Mode
|
* Org Mode
|
||||||
Improvements to the best mode in emacs
|
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-experimental-proc-attr-macros t
|
||||||
lsp-rust-analyzer-proc-macro-enable t
|
lsp-rust-analyzer-proc-macro-enable t
|
||||||
lsp-rust-analyzer-use-rustc-wrapper-for-build-scripts 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
|
#+end_src
|
||||||
* Composition
|
* Composition
|
||||||
Modes for handling plain text and prose
|
Modes for handling plain text and prose
|
||||||
|
|
|
@ -55,7 +55,7 @@
|
||||||
|
|
||||||
:checkers
|
:checkers
|
||||||
(syntax +childframe) ; tasing you for every semicolon you forget
|
(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
|
:tools
|
||||||
(debugger +lsp) ; stepping through code, to help you add bugs
|
(debugger +lsp) ; stepping through code, to help you add bugs
|
||||||
|
|
|
@ -17,6 +17,11 @@
|
||||||
libnotify
|
libnotify
|
||||||
# For flash cards
|
# For flash cards
|
||||||
anki
|
anki
|
||||||
|
# For spelling
|
||||||
|
aspell
|
||||||
|
aspellDicts.en
|
||||||
|
aspellDicts.en-science
|
||||||
|
aspellDicts.en-computers
|
||||||
# Desktop file for org-protocol
|
# Desktop file for org-protocol
|
||||||
(makeDesktopItem {
|
(makeDesktopItem {
|
||||||
name = "org-protocol";
|
name = "org-protocol";
|
||||||
|
|
Loading…
Reference in New Issue