Add spell check and suggestion
This commit is contained in:
parent
30f92dc50b
commit
31d5eb6cff
23
custom.el
23
custom.el
|
@ -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"))
|
||||
))
|
||||
|
|
Loading…
Reference in New Issue