Add spell check and suggestion

This commit is contained in:
Yannick Reiß 2024-05-01 08:32:08 +02:00
parent 30f92dc50b
commit 31d5eb6cff
2 changed files with 21 additions and 6 deletions

View File

@ -4,7 +4,7 @@
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(package-selected-packages
'(auto-complete laas aas yasnippet evil editorconfig markdown-mode auctex rust-mode nasm-mode lua-mode ada-mode diff-hl magit corfu consult vertico)))
'(spell-fu helm-company company auto-complete laas aas yasnippet evil editorconfig markdown-mode auctex rust-mode nasm-mode lua-mode ada-mode diff-hl magit corfu consult vertico)))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
@ -151,8 +151,21 @@
:cond #'laas-object-on-left-condition
"qq" (lambda () (interactive) (laas-wrap-previous-object "sqrt"))))
(unless (package-installed-p 'auto-complete)
(package-install 'auto-complete))
(ac-config-default)
(global-hl-line-mode 1)
(unless (package-installed-p 'company)
(package-install 'company))
(add-hook 'after-init-hook 'global-company-mode)
(unless (package-installed-p 'helm-company)
(package-install 'helm-company))
(unless (package-installed-p 'spell-fu)
(package-install 'spell-fu))
(spell-fu-global-mode)
(add-hook 'spell-fu-mode-hook
(lambda ()
(spell-fu-dictionary-add (spell-fu-get-ispell-dictionary "de"))
(spell-fu-dictionary-add (spell-fu-get-ispell-dictionary "en"))
))

View File

@ -19,7 +19,9 @@
(package-refresh-contents)
;; Load a custom theme
(load-theme 'adwaita t)
(unless (package-installed-p 'autumn-light-theme)
(package-install 'autumn-light-theme))
(load-theme 'autumn-light t)
;; Disable the tool bar
(tool-bar-mode -1)