summary refs log tree commit diff stats
path: root/user/emacs
diff options
context:
space:
mode:
authorAlan Pearce2023-09-22 19:31:14 +0200
committerAlan Pearce2023-09-22 19:31:14 +0200
commit248969cd2fbb9417598c1ce9420a2d5beb101cb2 (patch)
tree080009b6dfb79c97f3c086f2ebd95bdb4a04f82b /user/emacs
parent0c5c978d16a9c2aa86bf1ddc56e18dd06e2696a8 (diff)
downloadnixfiles-248969cd2fbb9417598c1ce9420a2d5beb101cb2.tar.lz
nixfiles-248969cd2fbb9417598c1ce9420a2d5beb101cb2.tar.zst
nixfiles-248969cd2fbb9417598c1ce9420a2d5beb101cb2.zip
Emacs: install expand-region, bound to SPC in visual mode
Diffstat (limited to 'user/emacs')
-rw-r--r--user/emacs/init.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el
index 275cd1b8..4ddcd8d9 100644
--- a/user/emacs/init.el
+++ b/user/emacs/init.el
@@ -725,6 +725,10 @@ _p_rev       _u_pper              _=_: upper/lower       _r_esolve
             conf-xdefaults-mode-hook)
           #'rainbow-mode))
 
+(use-package expand-region
+  :general (:states 'visual
+                    "SPC" #'er/expand-region))
+
 ;;; Major modes
 
 (setq major-mode-remap-alist '((c-mode . c-ts-mode)