Emacs - Flycheck

Table of Contents

Introduction

Flycheck1 is a on-the-fly syntax checking extension of Emacs, which supports a variety number of programming languages. It greatly facilitates the programming experience.

Installation

Flycheck can be directly installed via ELPA.

M-x package-install
flycheck

Configuration

;; Enable global flycheck mode
(add-hook 'after-init-hook #'global-flycheck-mode)

;; Clang support (C++14)
(setq flycheck-clang-language-standard "c++14")

;; Elpy support (use flycheck instead of flymake)
(setq elpy-modules (delete 'elpy-module-flymake elpy-modules))
(add-hook 'elpy-mode-hook 'flycheck-mode)

Footnotes: