summaryrefslogtreecommitdiff
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
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-;
-rw-r--r--init.el6
-rw-r--r--modules/custom-functions.el2
-rw-r--r--modules/flycheck-config.el5
3 files changed, 8 insertions, 5 deletions
diff --git a/init.el b/init.el
index 46881c14e..67ba895fa 100644
--- a/init.el
+++ b/init.el
@@ -3,8 +3,8 @@
;;; Commentary:
-;; Note: This init.el file has an early-init.el file associated with it. That
-;; file defines some variables and settings used within the rest of this config.
+;; Note: This init.el file has an early-init.el file associated with it.
+;; That file defines variables and settings used within the rest of the config.
;;; Code:
@@ -62,7 +62,7 @@
;; ------------------------- Features And Integrations -------------------------
-(require 'ai-config) ;; LLM integration
+(require 'ai-config) ;; LLM integration. note: ai-directives.el
(require 'calibredb-epub-config) ;; ebook reader/manager settings
(require 'dashboard-config) ;; first page on launch
(require 'dirvish-config) ;; file manager configuration
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