- starting init.el just basics (package, use-package, path-handlin) - include my-site-start.el that includes site-start.d directory and imports all *.el files in lexical order - functionality is imported via use-package inside the *.el file (first run: internet connection is needed to MELPA)
23 lines
645 B
EmacsLisp
23 lines
645 B
EmacsLisp
;;; 105-flycheck.el --- on-the-fly syntax checking
|
|
|
|
;;; Commentary:
|
|
;; Flycheck is a modern on-the-fly syntax checking extension for GNU Emacs
|
|
|
|
;;; Code:
|
|
(use-package flycheck
|
|
:ensure t
|
|
:init
|
|
;; enables syntax checking for every supported language
|
|
(global-flycheck-mode))
|
|
|
|
;; Force flycheck to always use c++11 support. We use
|
|
;; the clang language backend so this is set to clang
|
|
;;(add-hook 'c++-mode-hook
|
|
;; (lambda () (setq flycheck-clang-language-standard "c++11")))
|
|
|
|
;; Use flycheck-pyflakes for python. Seems to work a little better.
|
|
;;(require 'flycheck-pyflakes)
|
|
|
|
(provide '105-flycheck)
|
|
;;; 105-flycheck.el ends here
|