aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2025-10-20 09:46:39 -0500
committerCraig Jennings <c@cjennings.net>2025-10-20 09:46:39 -0500
commitd934ad1735c5a46d9a31143f23415c3ef4129c72 (patch)
tree75fe3b1448cc428532c5e6438e24efd61e22280f /modules
parent860521221988e64f1c704f821767453914713047 (diff)
downloaddotemacs-d934ad1735c5a46d9a31143f23415c3ef4129c72.tar.gz
dotemacs-d934ad1735c5a46d9a31143f23415c3ef4129c72.zip
refactor(keybindings): Use keymap-global-set for remap
Update the keybinding remap for `capitalize-region` to use `keymap-global-set` instead of `global-set-key`.
Diffstat (limited to 'modules')
-rw-r--r--modules/custom-case.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/custom-case.el b/modules/custom-case.el
index ca5563b2a..75ceb1845 100644
--- a/modules/custom-case.el
+++ b/modules/custom-case.el
@@ -108,7 +108,7 @@ and all articles are considered minor words."
(setq is-first nil))))))
;; replace the capitalize-region keybinding to call title-case
-(global-set-key [remap capitalize-region] 'cj/title-case-region)
+(keymap-global-set "<remap> <capitalize-region>" #'cj/title-case-region)
;; Case-change operations prefix and keymap
(defvar-keymap cj/case-map