From 4b33f5e120a7feb9be684af5402d18beef7b7847 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 31 Aug 2025 17:33:19 -0500 Subject: 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-; --- modules/custom-functions.el | 2 +- modules/flycheck-config.el | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'modules') 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 -- cgit v1.2.3