summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2025-08-31 17:33:19 -0500
committerCraig Jennings <c@cjennings.net>2025-08-31 17:33:19 -0500
commit4b33f5e120a7feb9be684af5402d18beef7b7847 (patch)
treef0867a01ca36e0dd14df5383ef553ccc4155e1ce /modules
parente50e1e8c3c198dc75f3be913f6b4b1047880eeb6 (diff)
downloaddotemacs-4b33f5e120a7feb9be684af5402d18beef7b7847.tar.gz
dotemacs-4b33f5e120a7feb9be684af5402d18beef7b7847.zip
chore(config): refine comments, docs and flycheck binding
- Simplify init.el commentary and reference ai-directives.el - Clarify cj/format-region-or-buffer docstring wording - Add flycheck keymap to personal/custom key map C-;
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 59a31ec2..46a62af2 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 82ff56cd..1b9a7183 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