Skip to content

Commit

Permalink
tweak(jinx): hook if the compilation is easy (Unix or Win+MSYS) [#147]
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Dec 29, 2023
1 parent 47087b8 commit f09dd85
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions modules/me-natural-langs.el
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,17 @@

(use-package jinx
:straight t
:when (and (or os/linux os/bsd os/mac) (+emacs-features-p 'modules))
:hook (text-mode . jinx-mode)
:hook (minemacs-build-functions . jinx--load-module)
:when (+emacs-features-p 'modules)
:init
(+map! "ts" #'jinx-mode)
(+nvmap! "z=" #'jinx-correct))

(unless (or os/win (+emacs-features-p 'modules))
(+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
Expand Down

0 comments on commit f09dd85

Please sign in to comment.