+made a simple flycheck system to turn on flycheck mode if not already on
This commit is contained in:
@@ -537,7 +537,14 @@
|
|||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package flycheck
|
(use-package flycheck
|
||||||
:commands flycheck-mode
|
:commands flycheck-mode
|
||||||
:bind ("C-c x" . flycheck-list-errors))
|
:bind ("C-c x" . +flycheck/list-errors-load-flycheck)
|
||||||
|
:config
|
||||||
|
(defun +flycheck/list-errors-load-flycheck ()
|
||||||
|
"Load flycheck if not available, then list errors."
|
||||||
|
(interactive)
|
||||||
|
(when (not (or flycheck-mode global-flycheck-mode))
|
||||||
|
(flycheck-mode))
|
||||||
|
(flycheck-list-errors)))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
** Activate tabs
|
** Activate tabs
|
||||||
Set tabs to nil by default, with normal tab size set to 2.
|
Set tabs to nil by default, with normal tab size set to 2.
|
||||||
|
|||||||
Reference in New Issue
Block a user