Using flycheck-mmark with zettel-mode

The official docs explains how to install a package from a fork. My fork of flycheck-mmark patches it to work with zettel-mode.

Add the following to packages.el:

(package! flycheck-mmark
  (:host github
   :repo "srid/flycheck-mmark"
   :branch "patch-1"))

Configure it in config.el:

(after! flycheck
  '(add-hook 'flycheck-mode-hook #'flycheck-mmark-setup))

(add-hook! 'markdown-mode-hook #'flycheck-mode)
(add-hook! 'zettel-mode-hook #'flycheck-mode)

Note that you still have to manually select the checker whenever opening a zettel, using M-x flycheck-select-checker.