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.
|
;; Your init file should contain only one such instance.
|
||||||
;; If there is more than one, they won't work right.
|
;; If there is more than one, they won't work right.
|
||||||
'(package-selected-packages
|
'(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
|
||||||
;; custom-set-faces was added by Custom.
|
;; custom-set-faces was added by Custom.
|
||||||
;; If you edit it by hand, you could mess it up, so be careful.
|
;; If you edit it by hand, you could mess it up, so be careful.
|
||||||
|
@ -151,8 +151,21 @@
|
||||||
:cond #'laas-object-on-left-condition
|
:cond #'laas-object-on-left-condition
|
||||||
"qq" (lambda () (interactive) (laas-wrap-previous-object "sqrt"))))
|
"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)
|
(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"))
|
||||||
|
))
|
||||||
|
|
4
init.el
4
init.el
|
@ -19,7 +19,9 @@
|
||||||
(package-refresh-contents)
|
(package-refresh-contents)
|
||||||
|
|
||||||
;; Load a custom theme
|
;; 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
|
;; Disable the tool bar
|
||||||
(tool-bar-mode -1)
|
(tool-bar-mode -1)
|
||||||
|
|
Loading…
Reference in New Issue