all repos — nixfiles @ 248969cd2fbb9417598c1ce9420a2d5beb101cb2

System and user configuration, managed by nix and home-manager

Emacs: install expand-region, bound to SPC in visual mode
Alan Pearce alan@alanpearce.eu
Fri, 22 Sep 2023 19:31:14 +0200
commit

248969cd2fbb9417598c1ce9420a2d5beb101cb2

parent

0c5c978d16a9c2aa86bf1ddc56e18dd06e2696a8

2 files changed, 5 insertions(+), 0 deletions(-)

jump to
M user/emacs/init.eluser/emacs/init.el
@@ -725,6 +725,10 @@ :ghook ('(css-mode-hook             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)
M user/settings/emacs.nixuser/settings/emacs.nix
@@ -118,6 +118,7 @@ evil-quickscope         evil-space
         evil-surround
         evil-textobj-tree-sitter
+        expand-region
         eyebrowse
         fish-mode
         feature-mode