diff --git a/README.org b/README.org index b4d8f22..cfec1fd 100644 --- a/README.org +++ b/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