Emacs: Check syntax if idle for 2 seconds.

This commit is contained in:
tastytea 2020-07-04 15:00:37 +02:00
parent 2cf1b84bfa
commit 0d60abb631

View File

@ -1,6 +1,6 @@
;;; common.el --- Common programming settings. -*- lexical-binding: t; -*-
;; Time-stamp: <2020-06-14T17:08:44+0200>
;; Time-stamp: <2020-07-04T15:00:22+0200>
;;; Commentary:
@ -48,11 +48,10 @@
:functions (flycheck-add-mode)
:diminish flycheck-mode
:custom ((flycheck-cppcheck-checks '("style" "warning" "information"))
(flycheck-emacs-lisp-load-path 'inherit)) ; Use load-path of Emacs.
(flycheck-emacs-lisp-load-path 'inherit) ; Use load-path of Emacs.
(flycheck-idle-change-delay 2.0))
:config (progn
(global-flycheck-mode)
(setq flycheck-check-syntax-automatically
(delq 'idle-change flycheck-check-syntax-automatically))
(flycheck-add-mode 'html-tidy 'web-mode)
(flycheck-add-mode 'css-csslint 'web-mode))
:bind (:map flycheck-mode-map