diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2020-08-01 18:23:44 +0100 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2020-08-01 18:23:44 +0100 |
commit | 5e0817b944dedee4d56798265e6ea2536361dd5a (patch) | |
tree | 291bfe85e7afa5cb2d1be465fc7f354b2af9c9cd | |
parent | 5651d5c5bd23d9909559dbb25a5635a0eea88ff7 (diff) | |
download | dotfiles-5e0817b944dedee4d56798265e6ea2536361dd5a.tar.gz dotfiles-5e0817b944dedee4d56798265e6ea2536361dd5a.tar.bz2 dotfiles-5e0817b944dedee4d56798265e6ea2536361dd5a.zip |
+made a simple flycheck system to turn on flycheck mode if not already on
-rw-r--r-- | Emacs/.config/emacs/config.org | 9 |
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. |