aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMountain Man <43313373+MountainMan1312@users.noreply.github.com>2023-05-19 00:27:32 -0400
committerMountain Man <43313373+MountainMan1312@users.noreply.github.com>2023-05-19 00:27:32 -0400
commit38d7ee724209eef1c5a33c111a0733aafea41862 (patch)
tree74b19a171aa2fa14b4f4f1016d61016ca6a2f204
parentStart `org-mode` buffers with folded headings (diff)
downloadmmosmacs-38d7ee724209eef1c5a33c111a0733aafea41862.tar.gz
mmosmacs-38d7ee724209eef1c5a33c111a0733aafea41862.tar.bz2
mmosmacs-38d7ee724209eef1c5a33c111a0733aafea41862.zip
`expand-region` by semantic units
-rw-r--r--init.el16
1 files 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 @@
383 383
384 384
385;; --------------------------------- 385;; ---------------------------------
386;; Type over selected text 386;; Selection
387;; ----------------------- 387;; -----------------------
388;; Typing over selected text should 388;; Efficient selection is one of the
389;; delete the selected text 389;; 47 totems of efficiency.
390;; --------------------------------- 390;; ---------------------------------
391 391
392;; Typing over selected text deletes
393;; the selected text
392(delete-selection-mode t) 394(delete-selection-mode t)
393 395
394 396
397;; Expand region by semantic units
398(use-package expand-region
399 :straight t
400 :config
401 (setq expand-region-subword-enabled t)
402 :bind ("M-=" . er/expand-region))
403
404
395 405
396 406
397;; --------------------------------------------------------------------- 407;; ---------------------------------------------------------------------