summaryrefslogtreecommitdiff
path: root/modules/flycheck-config.el
diff options
context:
space:
mode:
Diffstat (limited to 'modules/flycheck-config.el')
-rw-r--r--modules/flycheck-config.el19
1 files changed, 10 insertions, 9 deletions
diff --git a/modules/flycheck-config.el b/modules/flycheck-config.el
index f0ca71fe..37b8e657 100644
--- a/modules/flycheck-config.el
+++ b/modules/flycheck-config.el
@@ -10,25 +10,26 @@
(interactive)
(if (not (abbrev-mode))
(abbrev-mode))
- (flyspell-on-for-buffer-type)
+ ;; (flyspell-on-for-buffer-type)
(if (not (flycheck-mode))
(flycheck-mode)))
-;;;; ---------------------------------- Linting --------------------------------
+;; ---------------------------------- Linting ----------------------------------
+
+(defun cj/flycheck-list-errors ()
+ "Display flycheck's error list and switch to its buffer."
+ (interactive)
+ (flycheck-list-errors)
+ (switch-to-buffer-other-window "*Flycheck errors*"))
(use-package flycheck
:defer .5
:hook (sh-mode emacs-lisp-mode)
- :preface
- (defun cj/flycheck-list-errors ()
- "Display flycheck's error list and switch to its buffer."
- (interactive)
- (flycheck-list-errors)
- (switch-to-buffer-other-window "*Flycheck errors*"))
:bind ("C-; ?" . cj/flycheck-list-errors)
:config
;; don't warn about double-spaces after period.
- (setq-default checkdoc-arguments '("sentence-end-double-space" nil "warn-escape" nil))
+ (setq-default checkdoc-arguments '("sentence-end-double-space" nil
+ "warn-escape" nil))
;; proselint must be installed via the OS
(flycheck-define-checker proselint