Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Modern on the fly syntax checking for GNU Emacs
Emacs Lisp Makefile Python Rust Ruby C++ Other

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
CONTRIBUTING.org
COPYING
Makefile
README.org
flymake-checkers.el

README.org

flymake-checkers

Additional checkers for flymake.

This library extends the flymake, the on-the-fly syntax checker of GNU Emacs, with checkers for various programming and markup languages. It also replaces outdated or broken checkers built-in to flymake.

Features

Provided syntax checkers:

  • Emacs Lisp
  • Python
  • Ruby
  • CoffeeScript
  • Shell scripts (Bash, Dash and Zsh)
  • TeX/LaTeX

Installation

Install the ELPA packages from or Marmalade with M-x package-install flymake-checkers.

Or download the latest release and install flymake-checkers.el with M-x package-install-file.

The library is written and tested against GNU Emacs 24 and may or may not work in earlier versions of GNU Emacs.

Most checkers have dependencies against external tools that perform the checking. See Checkers for details.

Usage

Just enable flymake-mode, either automatically by adding the following code to your init.el file.

;; Enable flymake for all files
(add-hook 'find-file-hook 'flymake-find-file-hook)

Or manually by M-x flymake-mode after visiting a file.

The checkers provided by this library are automatically registered with flymake, and flymake will automatically choose the proper checker for the current buffer.

Checkers

You need to install external utilities for the following checkers:

Python
Install flake8, pyflakes or pylint.
Ruby
Install Ruby.
CoffeeScript
Install coffeelint.
TeX/LaTeX
Install chktex. Most TeX distributions, including TeXLive and MacTeX, already do this for you.
Shell scripts
Install Bash or Zsh depending on the type of shell file you want to check.

Customization

  • M-x customize-group flymake-checkers
  • M-x customize-group flymake

Further help

  • C-h f flymake

Credits

The Vim library syntastic by Martin Grenfell inspired many of the checkers.

License

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

See COPYING for details.

Something went wrong with that request. Please try again.