From e985a615b4b51db656cb8471c29ad88e1ce52dea Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Wed, 2 Oct 2024 16:45:46 -0700 Subject: [PATCH] Jinx for spellchecking --- init.el | 33 +++++++++++++++++++++++---------- 1 file changed, 23 insertions(+), 10 deletions(-) diff --git a/init.el b/init.el index e972474..3fa33d4 100644 --- a/init.el +++ b/init.el @@ -48,9 +48,7 @@ (use-package emacs :hook (;;(emacs-lisp-mode . my/-emacs-lisp-mode-setup-evil-lookup) ;;(prog-mode . electric-pair-local-mode) - ((text-mode message-mode tex-mode) . flyspell-mode) - ((text-mode message-mode tex-mode prog-mode) . auto-fill-mode) - (prog-mode . flyspell-prog-mode)) + ((text-mode message-mode tex-mode prog-mode) . auto-fill-mode)) :init ;; (defun my/-emacs-lisp-mode-setup-evil-lookup () ;; (setq-local evil-lookup-func @@ -207,13 +205,23 @@ Interactively, force the recompile if called with a prefix." (tab-bar-mode 1)) ;; flyspell -(use-package flyspell +;; (use-package flyspell +;; :hook +;; (((text-mode message-mode tex-mode) . flyspell-mode) +;; (prog-mode . flyspell-prog-mode)) +;; :config +;; (setq ispell-program-name "hunspell" +;; flyspell-issue-message-flag nil +;; flyspell-issue-welcome-flag nil) +;; (define-key flyspell-mode-map (kbd "C-;") nil t) +;; (define-key flyspell-mode-map (kbd "C-,") nil t)) + +;; jinx (better flyspell) +(use-package jinx + :hook (emacs-startup . global-jinx-mode) :config - (setq ispell-program-name "hunspell" - flyspell-issue-message-flag nil - flyspell-issue-welcome-flag nil) - (define-key flyspell-mode-map (kbd "C-;") nil t) - (define-key flyspell-mode-map (kbd "C-,") nil t)) + (evil-define-key 'normal 'global + "z=" #'jinx-correct)) ;; recentf (use-package recentf @@ -448,7 +456,12 @@ visual states." minibuffer-prompt-properties '(read-only t cursor-intangible t face minibuffer-prompt)) - (vertico-mode 1)) + (vertico-mode 1) + ;; for jinx + (require 'vertico-multiform) + (add-to-list 'vertico-multiform-categories + '(jinx grid (vertico-grid-annotate . 20))) + (vertico-multiform-mode 1)) ;; orderless (use-package orderless