summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/custom-functions.el2
-rw-r--r--modules/flycheck-config.el5
2 files changed, 5 insertions, 2 deletions
diff --git a/modules/custom-functions.el b/modules/custom-functions.el
index 59a31ec2a..46a62af2c 100644
--- a/modules/custom-functions.el
+++ b/modules/custom-functions.el
@@ -87,7 +87,7 @@ Otherwise, complain."
(defun cj/format-region-or-buffer ()
"Reformat the region or the entire buffer.
-Deletes all trailing whitespace, reindents the region, and replaces tabs with spaces."
+Deletes trailing whitespace, reindents the region, and replaces tabs with spaces."
(interactive)
(let ((start-pos (if (use-region-p) (region-beginning) (point-min)))
(end-pos (if (use-region-p) (region-end) (point-max))))
diff --git a/modules/flycheck-config.el b/modules/flycheck-config.el
index 82ff56cd3..1b9a71839 100644
--- a/modules/flycheck-config.el
+++ b/modules/flycheck-config.el
@@ -44,11 +44,14 @@
;; ---------------------------------- Linting ----------------------------------
(use-package flycheck
+ :after custom-functions ;; for keymap binding
:defer t
:commands (flycheck-list-errors
cj/flycheck-list-errors)
:hook ((sh-mode emacs-lisp-mode) . flycheck-mode)
- :bind (("C-; ?" . cj/flycheck-list-errors))
+ :bind
+ (:map cj/custom-keymap
+ ("?" . cj/flycheck-list-errors))
:custom
;; Only disable these two Checkdoc warnings; leave all others intact.
(checkdoc-arguments