-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathontop-flycheck.el
38 lines (30 loc) · 1.22 KB
/
ontop-flycheck.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
;;; ontop-flycheck.el --- Flycheck configuration -*- lexical-binding: t; -*-
;; This file is part of Emacs ONTOP
;; https://github.com/monkeyjunglejuice/emacs.ontop
;;; Commentary:
;; You can also use this file/configuration independently from Emacs ONTOP
;; Load it from anywhere via `(load-file "/path/to/ontop-flycheck.el")'.
;;; Code:
;; ____________________________________________________________________________
;;; USE-PACKAGE
;; <https://github.com/jwiegley/use-package>
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package nil))
(eval-when-compile
(require 'use-package))
;; ____________________________________________________________________________
;;; SYNTAX CHECKER / LINTER
;; <https://www.flycheck.org/en/latest/>
;; Alternative for the built-in Flymake
(use-package flycheck
:ensure t
:init
;; Remove Flymake from that hook, as we're going to use Flycheck instead
(remove-hook 'emacs-lisp-mode-hook #'flymake-mode)
:hook
(emacs-lisp-mode . flycheck-mode)
(lisp-interaction-mode . (lambda () (flycheck-mode -1))))
;; ____________________________________________________________________________
(provide 'ontop-flycheck)
;;; ontop-flycheck.el ends here