Skip to content

Commit

Permalink
revert(natural-langs): restore jinx
Browse files Browse the repository at this point in the history
This reverts commit 1d10383.
  • Loading branch information
abougouffa committed Jan 4, 2024
1 parent 9f48b02 commit 6014efa
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 34 deletions.
19 changes: 13 additions & 6 deletions modules/me-natural-langs.el
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,20 @@

;;; Code:

(use-package flyspell-correct
:straight (:host github :repo "d12frosted/flyspell-correct" :files ("flyspell-correct.el"))
:hook (text-mode . flyspell-mode)
:hook (prog-mode . flyspell-prog-mode)
(use-package jinx
:straight t
:when (+emacs-features-p 'modules)
:init
(+map! "ts" `(,(+cmdfy! (if (derived-mode-p 'prog-mode) (flyspell-prog-mode) (flyspell-mode))) :wk "flyspell"))
(+nvmap! "z=" #'flyspell-correct-at-point))
(+map! "ts" #'jinx-mode)
(+nvmap! "z=" #'jinx-correct)
;; Module compilation with libenchant should be easy on Linux, BSD and Mac OS,
;; and on Windows when the installation is done using MSYS2. When Emacs flavor
;; is MinGW, do not setup the hook by default.
(when (or os/linux os/bsd os/mac (and os/win (string-suffix-p "msys" system-configuration)))
(add-hook 'text-mode-hook #'jinx-mode)))

(unless (+emacs-features-p 'modules)
(+load minemacs-modules-dir "obsolete/me-spell-fu.el"))

(use-package go-translate
:straight (:host github :repo "lorniu/go-translate")
Expand Down
28 changes: 0 additions & 28 deletions modules/obsolete/me-jinx.el

This file was deleted.

0 comments on commit 6014efa

Please sign in to comment.