]> xn--ix-yja.es Git - alex.git/commitdiff
Configure aspell
authoralex <alex@pdp7.net>
Fri, 10 Feb 2023 19:56:20 +0000 (20:56 +0100)
committeralex <alex@pdp7.net>
Fri, 10 Feb 2023 19:56:20 +0000 (20:56 +0100)
emacs/emacs.el

index 1fb584f2b07ab022c2ae67ace1ddb5eed3dc3ff0..1bf0001858ebc74389782f7be8ad9c0cbec32042 100644 (file)
 (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)