From a6556cc7581d60b6dfad4277fe0a45cf469fbb45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Sat, 4 Aug 2018 12:53:25 -0500 Subject: [PATCH] Automatic flycheck-mode --- README.md | 9 +++++++++ lisp/init-flycheck.el | 1 + 2 files changed, 10 insertions(+) diff --git a/README.md b/README.md index 4aabf92..e5ad497 100644 --- a/README.md +++ b/README.md @@ -8,5 +8,14 @@ Lightweight configuration of emacs with basic utilities plus personal configurat `apt-get install markdown` or `pacman -S markdown` +### Flycheck Mode +- Require installed the languages checking, example: + + `pacman -S shellcheck` # bash, sh + + `pacman -S eslint` # ECMAScript + + `pacman -S python-pylint` # python + ### License - [GLPv3](LICENSE) diff --git a/lisp/init-flycheck.el b/lisp/init-flycheck.el index a3f6c37..9e38e1d 100644 --- a/lisp/init-flycheck.el +++ b/lisp/init-flycheck.el @@ -1,2 +1,3 @@ (require-package 'flycheck) +(add-hook 'after-init-hook 'global-flycheck-mode) (provide 'init-flycheck)