diff options
| author | Luke Hoersten <[email protected]> | 2025-10-02 10:54:52 -0500 |
|---|---|---|
| committer | Luke Hoersten <[email protected]> | 2025-10-02 10:54:52 -0500 |
| commit | 880bc08da7a003f3a483b9432e5927f018a06f7d (patch) | |
| tree | 63356853f2e04346528f8c9fd1df493d61b0d4b9 /init.el | |
| parent | 9d4a8bf620e98d4fc67739102a45c3efd259c316 (diff) | |
Replaced flyspell mode with jinx.
Changes:
- Added jinx package
- Replaced flyspell-mode with jinx-mode in text-mode and markdown-mode
- Added enchant detection that shows a helpful warning in Warnings buffer if enchant is not installed, with OS-specific install instructions
If enchant isn't installed when you start Emacs, you'll see a warning popup with instructions for your OS (brew for macOS, apt for Ubuntu).
Diffstat (limited to 'init.el')
| -rw-r--r-- | init.el | 20 |
1 files changed, 17 insertions, 3 deletions
@@ -69,7 +69,7 @@ (require 'package-require) (package-require '(rg company exec-path-from-shell expand-region vertico orderless consult marginalia magit forge magit-todos markdown-mode hgignore-mode move-text paredit - rainbow-delimiters json-mode json-reformat flycheck treesit-auto ibuffer-project + rainbow-delimiters json-mode json-reformat flycheck treesit-auto ibuffer-project jinx solarized-theme terraform-mode visual-regexp yasnippet yaml-mode emmet-mode)) @@ -79,8 +79,22 @@ (require 'ansible-init) +;;; jinx spellcheck setup +(with-eval-after-load 'jinx + (unless (executable-find "enchant-2") + (display-warning + 'jinx + (concat "Enchant library not found. Jinx spell-checking requires enchant.\n\n" + "To install:\n" + (if (eq system-type 'darwin) + " macOS: brew install enchant\n" + " Ubuntu/Debian: sudo apt install libenchant-2-dev\n") + "\nAfter installation, restart Emacs.") + :warning))) + + ;;; text-mode -(add-hook 'fundamental-mode-hook 'flyspell-mode) ; spellcheck text +(add-hook 'fundamental-mode-hook 'jinx-mode) ; spellcheck text (add-hook 'fundamental-mode-hook 'turn-on-auto-fill) ; autofill text @@ -194,7 +208,7 @@ ;;; markdown-mode -(add-hook 'markdown-mode-hook 'flyspell-mode) +(add-hook 'markdown-mode-hook 'jinx-mode) (setq-default markdown-command "pandoc -f gfm") |
