+made a simple flycheck system to turn on flycheck mode if not already on

This commit is contained in:
2020-08-01 18:23:44 +01:00
parent 5651d5c5bd
commit 5e0817b944

View File

@@ -537,7 +537,14 @@
#+BEGIN_SRC emacs-lisp
(use-package flycheck
: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
** Activate tabs
Set tabs to nil by default, with normal tab size set to 2.