Spell checking updates
Make flyspell not take over "M-tab" keybind that's useful for completion at point Add flyspell-correct to use completing-read Add consult-flyspell integration
This commit is contained in:
parent
f8731e0924
commit
0eb0db5311
29
README.org
29
README.org
|
@ -40,11 +40,6 @@ Loading this file is handled automatically on my [[https://git.xenia.me.uk/xenia
|
|||
(global-auto-revert-mode +1)
|
||||
(delete-selection-mode +1)
|
||||
|
||||
;; turn on spell checking, if available.
|
||||
(when (and (require 'ispell nil :noerror) (executable-find ispell-program-name))
|
||||
(add-hook 'text-mode-hook #'flyspell-mode)
|
||||
(add-hook 'prog-mode-hook #'flyspell-prog-mode))
|
||||
|
||||
;; Make shebang (#!) file executable when saved
|
||||
(add-hook 'after-save-hook #'executable-make-buffer-file-executable-if-script-p)
|
||||
#+end_src
|
||||
|
@ -109,6 +104,30 @@ Loading this file is handled automatically on my [[https://git.xenia.me.uk/xenia
|
|||
(keymap-global-set "C-h K" #'describe-keymap)
|
||||
#+end_src
|
||||
|
||||
** 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
|
||||
:after flyspell
|
||||
:diminish
|
||||
:bind ( :map flyspell-mode-map
|
||||
("C-;" . flyspell-correct-wrapper)))
|
||||
(use-package consult-flyspell
|
||||
:ensure t
|
||||
:diminish
|
||||
:after (consult flyspell)))
|
||||
#+end_src
|
||||
|
||||
** ibuffer
|
||||
#+begin_src emacs-lisp
|
||||
(use-package ibuffer
|
||||
|
|
Loading…
Reference in a new issue