Set proper dependencies for ispell, set default dict to en_GB
This commit is contained in:
parent
d5624414d5
commit
e9624864b2
|
@ -159,29 +159,41 @@
|
|||
* Spell checking
|
||||
#+begin_src emacs-lisp
|
||||
;; turn on spell checking, if available.
|
||||
(when (and (require 'ispell nil :noerror) (executable-find ispell-program-name))
|
||||
(use-package flyspell
|
||||
:ensure t
|
||||
:diminish
|
||||
:hook ((text-mode . flyspell-mode)
|
||||
(prog-mode . flyspell-prog-mode))
|
||||
:custom
|
||||
(flyspell-mode-line-string nil)
|
||||
(flyspell-use-meta-tab nil))
|
||||
(use-package flyspell-correct
|
||||
:ensure t
|
||||
:diminish
|
||||
:after flyspell
|
||||
:bind ( :map flyspell-mode-map
|
||||
("C-;" . flyspell-correct-wrapper)))
|
||||
(use-package consult-flyspell
|
||||
:ensure t
|
||||
:diminish
|
||||
:after (consult flyspell)
|
||||
:bind ( :map flyspell-mode-map
|
||||
("C-c s ;" . consult-flyspell))
|
||||
:config
|
||||
(setq consult-flyspell-always-check-buffer t)))
|
||||
(use-package ispell
|
||||
:ensure t
|
||||
:diminish
|
||||
:custom
|
||||
(ispell-dictionary "en_GB"))
|
||||
|
||||
(use-package flyspell
|
||||
:ensure t
|
||||
:diminish
|
||||
:hook ((text-mode . flyspell-mode)
|
||||
(prog-mode . flyspell-prog-mode))
|
||||
:init
|
||||
(require 'ispell)
|
||||
:custom
|
||||
(flyspell-mode-line-string nil)
|
||||
(flyspell-use-meta-tab nil)
|
||||
:config
|
||||
(require 'flyspell-correct)
|
||||
(require 'consult-flyspell))
|
||||
|
||||
(use-package flyspell-correct
|
||||
:ensure t
|
||||
:diminish
|
||||
:after flyspell
|
||||
:bind ( :map flyspell-mode-map
|
||||
("C-;" . flyspell-correct-wrapper)))
|
||||
|
||||
(use-package consult-flyspell
|
||||
:ensure t
|
||||
:diminish
|
||||
:after (consult flyspell)
|
||||
:bind ( :map flyspell-mode-map
|
||||
("C-c s ;" . consult-flyspell))
|
||||
:config
|
||||
(setq consult-flyspell-always-check-buffer t))
|
||||
#+end_src
|
||||
|
||||
* ibuffer
|
||||
|
|
Loading…
Reference in a new issue