You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Small code share to keep up to date and download grammalecte automatically (normally it works for me)
(use-package flycheck
:config
(global-flycheck-mode t) ;;activate flycheck-mode to work the dowload
)
(use-package flycheck-grammalecte
:after flycheck
;; the configuration go here
(flycheck-grammalecte-setup)
;; try and install
(unless (fboundp 'grammalecte--version)
(grammalecte-download-grammalecte))
;; update
(let ((local-version (grammalecte--version))
(upstream-version (grammalecte--upstream-version)))
(when (stringp upstream-version)
(if (stringp local-version)
;; It seems we have a local version of grammalecte.
;; Compare it with upstream
(when (and (string-version-lessp local-version upstream-version)
(or grammalecte-download-without-asking
(yes-or-no-p
"[Grammalecte] Grammalecte is out of date. Download it NOW?")))
(grammalecte-download-grammalecte upstream-version))
;; It seems there is no currently downloaded Grammalecte
;; package. Force install it, as nothing will work without it.
(grammalecte-download-grammalecte upstream-version))))
)
Test and give me a feedback ^^
The text was updated successfully, but these errors were encountered:
Hi, and thank you very much for your contribution. I'll work on it next week when I'll come back from my hollidays. If you don't mind, could you send it to me again as a patch or a merge request?
Wow, I just came back to this, and in fact I think you miss something: the grammalecte-download-grammalecte function already take care of updating grammalecte if needed.
However you are right that once it is installed, I never call it again in the flycheck setup function (the reason behind it was to avoid yes or no question poping out of the blue from time to time). Thus it is a manual process.
Small code share to keep up to date and download grammalecte automatically (normally it works for me)
Test and give me a feedback ^^
The text was updated successfully, but these errors were encountered: