Skip to content

Commit

Permalink
tweak(jinx): enable only when Emacs is built with modules support
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Dec 25, 2023
1 parent b2b62bb commit c603e55
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 1 addition & 3 deletions modules/extras/me-spell-fu.el
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@

;;; Code:

(message "me-spell-fu is deprecated")

;;;###autoload
(defmacro +spell-fu-register-dictionaries! (&rest langs)
"Register dictionaries for `LANGS` to spell-fu's multi-dict."
Expand All @@ -20,7 +18,7 @@
(setq closure (append closure `((+spell-fu--add-dictionary ,lang)))))
(append '(add-hook (quote spell-fu-mode-hook)) (list closure)))))

(make-obsolete '+spell-fu-register-dictionaries! 'jinx-mode "2023-12-25")
(make-obsolete '+spell-fu-register-dictionaries! 'jinx-languages "2023-12-25")


(provide 'me-spell-fu)
Expand Down
4 changes: 4 additions & 0 deletions modules/me-natural-langs.el
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,15 @@

(use-package jinx
:straight t
:when (+emacs-features-p 'modules)
:hook (text-mode . jinx-mode)
:init
(+map! "ts" #'jinx-mode)
(+nvmap! "z=" #'jinx-correct))

(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")
:commands +gts-yank-translated-region +gts-translate-with
Expand Down

0 comments on commit c603e55

Please sign in to comment.