Jinx for spellchecking

This commit is contained in:
Alexander Rosenberg 2024-10-02 16:45:46 -07:00
parent e7b13a1350
commit e985a615b4
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730

33
init.el
View File

@ -48,9 +48,7 @@
(use-package emacs (use-package emacs
:hook (;;(emacs-lisp-mode . my/-emacs-lisp-mode-setup-evil-lookup) :hook (;;(emacs-lisp-mode . my/-emacs-lisp-mode-setup-evil-lookup)
;;(prog-mode . electric-pair-local-mode) ;;(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))
((text-mode message-mode tex-mode prog-mode) . auto-fill-mode)
(prog-mode . flyspell-prog-mode))
:init :init
;; (defun my/-emacs-lisp-mode-setup-evil-lookup () ;; (defun my/-emacs-lisp-mode-setup-evil-lookup ()
;; (setq-local evil-lookup-func ;; (setq-local evil-lookup-func
@ -207,13 +205,23 @@ Interactively, force the recompile if called with a prefix."
(tab-bar-mode 1)) (tab-bar-mode 1))
;; flyspell ;; 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 :config
(setq ispell-program-name "hunspell" (evil-define-key 'normal 'global
flyspell-issue-message-flag nil "z=" #'jinx-correct))
flyspell-issue-welcome-flag nil)
(define-key flyspell-mode-map (kbd "C-;") nil t)
(define-key flyspell-mode-map (kbd "C-,") nil t))
;; recentf ;; recentf
(use-package recentf (use-package recentf
@ -448,7 +456,12 @@ visual states."
minibuffer-prompt-properties '(read-only t minibuffer-prompt-properties '(read-only t
cursor-intangible t cursor-intangible t
face minibuffer-prompt)) 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 ;; orderless
(use-package orderless (use-package orderless