From 30e75706a534cbbf73c67a03b1625a0e7e356c41 Mon Sep 17 00:00:00 2001 From: Dimitri Lozeve Date: Wed, 8 Apr 2020 10:12:06 +0200 Subject: [PATCH] Add better defaults for upcase/downcase commands on regions --- init.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/init.el b/init.el index 98126fc..c93c040 100644 --- a/init.el +++ b/init.el @@ -55,6 +55,11 @@ (global-set-key (kbd "M-z") #'zap-up-to-char) +;; Better than default: act on the region if active +(bind-key "M-c" 'capitalize-dwim) +(bind-key "M-l" 'downcase-dwim) +(bind-key "M-u" 'upcase-dwim) + (setq-default c-basic-offset 4) (setq c-default-style "linux")