From 38d7ee724209eef1c5a33c111a0733aafea41862 Mon Sep 17 00:00:00 2001 From: Mountain Man <43313373+MountainMan1312@users.noreply.github.com> Date: Fri, 19 May 2023 00:27:32 -0400 Subject: `expand-region` by semantic units --- init.el | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/init.el b/init.el index 3b2c2f1..7c115fc 100644 --- a/init.el +++ b/init.el @@ -383,15 +383,25 @@ ;; --------------------------------- -;; Type over selected text +;; Selection ;; ----------------------- -;; Typing over selected text should -;; delete the selected text +;; Efficient selection is one of the +;; 47 totems of efficiency. ;; --------------------------------- +;; Typing over selected text deletes +;; the selected text (delete-selection-mode t) +;; Expand region by semantic units +(use-package expand-region + :straight t + :config + (setq expand-region-subword-enabled t) + :bind ("M-=" . er/expand-region)) + + ;; --------------------------------------------------------------------- -- cgit v1.2.3