GitHub - ewilderj/flymake-markdownlint-cli2: Lint your markdown in Emacs with flymake and markdownlint-cli2 · GitHub
Skip to content

Latest commit

 

History

11 Commits

Folders and files

Repository files navigation

flymake-markdownlint-cli2, a markdown linter for Emacs

Lint your Markdown files with flymake (built into Emacs) and markdownlint-cli2.

Usage

(add-hook 'markdown-mode-hook 'flymake-mode)
(require 'flymake-markdownlint-cli2)
(add-hook 'markdown-mode-hook 'flymake-markdownlint-cli2-setup)

With use-package

(use-package flymake-markdownlint-cli2
  :vc (:url "https://github.com/ewilderj/flymake-markdownlint-cli2"
            :rev :newest
            :branch "main")
  :config
  (add-hook 'markdown-mode-hook 'flymake-mode)
  (add-hook 'markdown-mode-hook 'flymake-markdownlint-cli2-setup))

Configuration

By default the mode looks for .markdownlint-cli2.mjs in the buffer's directory, and searches recursively upwards in the file system until it finds a config file. The configuration filename can be configured, and you can also specify an absolute path to the configuration file.

Type M-x customize-group followed by flymake-markdownlint-cli2 to configure these options.

Example

If you want to extend or override the default rules, e.g. by using rules from github/markdownlint-github, install these into the root of your project, and create a configuration file .markdownlint-cli2.mjs accordingly.

Credits

This mode was adapted from Micah Elliott's work at flymake-mdl.

About

Lint your markdown in Emacs with flymake and markdownlint-cli2

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages