aboutsummaryrefslogtreecommitdiff
path: root/Emacs
diff options
context:
space:
mode:
Diffstat (limited to 'Emacs')
-rw-r--r--Emacs/.config/emacs/config.org9
1 files changed, 8 insertions, 1 deletions
diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org
index 1f56fe0..4a70ca0 100644
--- a/Emacs/.config/emacs/config.org
+++ b/Emacs/.config/emacs/config.org
@@ -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.