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.el18
1 files changed, 8 insertions, 10 deletions
diff --git a/modules/flycheck-config.el b/modules/flycheck-config.el
index 1bad4cbd..f0ca71fe 100644
--- a/modules/flycheck-config.el
+++ b/modules/flycheck-config.el
@@ -6,7 +6,7 @@
;;; Code:
(defun cj/prose-helpers-on ()
- "Ensure that abbrev, flyspell, and flycheck are on."
+ "Ensure that abbrev, flyspell, and flycheck are all on."
(interactive)
(if (not (abbrev-mode))
(abbrev-mode))
@@ -19,7 +19,13 @@
(use-package flycheck
:defer .5
:hook (sh-mode emacs-lisp-mode)
- :bind ("C-; ?" . flycheck-list-errors)
+ :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))
@@ -35,13 +41,5 @@
:modes (text-mode markdown-mode gfm-mode))
(add-to-list 'flycheck-checkers 'proselint))
-;; ;; https://github.com/emacs-grammarly/flycheck-grammarly
-;; (use-package flycheck-grammarly
-;; :defer 1
-;; :after flycheck
-;; :config
-;; (with-eval-after-load 'flycheck
-;; (flycheck-grammarly-setup)))
-
(provide 'flycheck-config)
;;; flycheck-config.el ends here