diff options
| author | Craig Jennings <c@cjennings.net> | 2025-10-18 00:18:08 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2025-10-18 00:18:08 -0500 |
| commit | 42c5a6d5d6491afba7e723710833027bcedd9ec1 (patch) | |
| tree | 67e48098a15a0c77140a41c17cf30672b6e36b92 /modules/custom-case.el | |
| parent | ec84c0c4c64a2d0ce73aca23775fe26463dc53c3 (diff) | |
maint: custom-case: added commentary
Diffstat (limited to 'modules/custom-case.el')
| -rw-r--r-- | modules/custom-case.el | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/modules/custom-case.el b/modules/custom-case.el index e7403d4a..2a87155b 100644 --- a/modules/custom-case.el +++ b/modules/custom-case.el @@ -2,7 +2,18 @@ ;;; Commentary: ;; - +;; Utilities for changing text case. +;; - cj/title-case-region: Title-cases the active region, or the current line if +;; no region. Follows common English rules: major words capitalized; minor words +;; (a, an, and, as, at, but, by, for, if, in, is, nor, of, on, or, so, the, to, yet) +;; lowercased except at the start or after :, !, or ?. Avoids capitalizing +;; immediately after separators like -, \, ' or .; downcases first, then fixes caps. +;; - cj/upcase-dwim / cj/downcase-dwim: operate on the region, or on the symbol at +;; point when no region is active. +;; +;; Integration: remaps capitalize-region to cj/title-case-region and exposes a case +;; submenu on cj/custom-keymap under "c": t (title), u (upcase), l (downcase). +;; ;;; Code: (eval-when-compile (require 'keybindings)) |
