Skip to content

ewilderj/flymake-markdownlint-cli2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •