From 0b640ec28e1980b6f1d47c95df1a21765fe04726 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Tue, 8 Feb 2022 09:44:59 -0800 Subject: [PATCH] =?UTF-8?q?[oni-core]=20Replace=20=E2=80=98(upcase|downcas?= =?UTF-8?q?e|capitalize)-word=E2=80=99=20with=20dwim?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The “Do What I Mean” variants will either work on a region or a word, not just a word. --- oni-core.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/oni-core.el b/oni-core.el index 514730e..2da7f7e 100644 --- a/oni-core.el +++ b/oni-core.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse ;; Keywords: local -;; Version: 2022.0106.091634 +;; Version: 2022.0204.204006 ;; Package-Requires: (oni-data-dir oni-embrace oni-hydra expand-region multiple-cursors gcmh diminish ws-butler which-key insert-char-preview dashboard mixed-pitch ace-window) ;; This program is free software; you can redistribute it and/or modify @@ -215,6 +215,9 @@ _s_: String list" (global-set-key [remap insert-char] 'insert-char-preview) (global-set-key [remap move-beginning-of-line] #'oni-core-move-beginning-of-dwim) (global-set-key [remap move-end-of-line] #'oni-core-move-end-of-dwim) +(global-set-key [remap upcase-word] #'upcase-dwim) +(global-set-key [remap downcase-word] #'downcase-dwim) +(global-set-key [remap capitalize-word] #'capitalize-dwim) (global-set-key (kbd "C-") 'winner-undo) (global-set-key (kbd "C-") 'winner-redo)