diff options
| author | 2022-02-08 09:44:59 -0800 | |
|---|---|---|
| committer | 2022-02-08 09:44:59 -0800 | |
| commit | 0b640ec28e1980b6f1d47c95df1a21765fe04726 (patch) | |
| tree | 7a6ff5cd779cfd36625d7bda1f6b1fd01fd85915 | |
| parent | dcf277a644e83826ff6fc419b0d5ec282bcec5fd (diff) | |
| download | emacs-config-0b640ec28e1980b6f1d47c95df1a21765fe04726.tar.gz emacs-config-0b640ec28e1980b6f1d47c95df1a21765fe04726.zip | |
[oni-core] Replace ‘(upcase|downcase|capitalize)-word’ with dwim
The “Do What I Mean” variants will either work on a region or a word, not just a
word.
| -rw-r--r-- | oni-core.el | 5 |
1 files changed, 4 insertions, 1 deletions
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 <tom@ryuslash.org> ;; 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-<left>") 'winner-undo) (global-set-key (kbd "C-<right>") 'winner-redo) |
