Skip to content

nlamirault/emacs-markdownfmt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

markdownfmt

Coverage Status

Master :

  • MELPA Stable
  • Circle CI

Develop:

  • Melpa Status
  • Circle CI

Format Markdown in emacs using markdownfmt

Installation

The recommended way to install markdownfmt is via MELPA:

M-x package-install markdownfmt

or Cask:

(depends-on "markdownfmt")

Usage

Run M-x markdownfmt-format-buffer to format the current buffer.

For convenience, you may bind it to a key, such as:

(define-key markdown-mode-map (kbd "C-c C-f") #'markdownfmt-format-buffer)

Alternatively, run markdownfmt before saving markdown buffers:

(add-hook 'markdown-mode-hook #'markdownfmt-enable-on-save)

Development

Cask

markdownfmt use Cask for dependencies management. Install it and retrieve dependencies :

$ curl -fsSkL https://raw.github.com/cask/cask/master/go | python
$ export PATH="$HOME/.cask/bin:$PATH"
$ cask

Testing

  • Launch unit tests from shell

    $ make clean test

  • Using overseer :

Keybinding Description
C-c , t launch unit tests from buffer
C-c , b launch unit tests
C-c , g launch unit tests with tag (find, regexp, ...)
  • Tips:

If you want to launch a single unit test, add a specify tag :

(ert-deftest test-foobar ()
  :tags '(current)

And launch it using : C-c , g and specify tag : current

Support / Contribute

See here

Changelog

A changelog is available here.

License

See LICENSE.

Contact

Nicolas Lamirault [email protected]

About

Format Markdown in emacs using markdownfmt

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published