aboutsummaryrefslogtreecommitdiff
path: root/emacs/emacs.el
diff options
context:
space:
mode:
authoralex <alex@pdp7.net>2023-02-10 20:56:20 +0100
committeralex <alex@pdp7.net>2023-02-10 20:56:20 +0100
commit98940af1c93f4c9368f7cc9eb874b170542a7a70 (patch)
treea5283cda076a6f210df4fa55cfa9a5da33de1120 /emacs/emacs.el
parent0cfa56eab81b5836d10a330c93ff1397748bdd54 (diff)
Configure aspell
Diffstat (limited to 'emacs/emacs.el')
-rw-r--r--emacs/emacs.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/emacs/emacs.el b/emacs/emacs.el
index 1fb584f2..1bf00018 100644
--- a/emacs/emacs.el
+++ b/emacs/emacs.el
@@ -44,6 +44,12 @@
(add-hook 'find-file-hook 'flymake-vale-maybe-load)
(add-hook 'adoc-mode-hook 'flymake-mode)
+(straight-use-package 'flymake-aspell)
+(add-hook 'adoc-mode-hook #'flymake-aspell-setup)
+(setq ispell-dictionary "en_US-RH")
+
+(add-hook 'adoc-mode-hook (lambda () (setq flymake-aspell-aspell-mode "asciidoc")))
+
(straight-use-package 'lsp-mode)
(straight-use-package 'company-mode)
(straight-use-package 'lsp-ui)