From 1d0f72aa12b93e497fc1fc64266f631e998e4b03 Mon Sep 17 00:00:00 2001 From: larstvei Date: Mon, 12 Jun 2023 02:36:10 +0200 Subject: [PATCH] use-package expand-region --- init.org | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/init.org b/init.org index 21fc7d3..1993cdc 100644 --- a/init.org +++ b/init.org @@ -207,8 +207,7 @@ (let* ((package--builtins nil) (packages - '(expand-region ; Increase selected region by semantic units - focus ; Dim color of text in surrounding sections + '(focus ; Dim color of text in surrounding sections go-mode ; Major mode for the Go programming language haskell-mode ; A Haskell editing mode lua-mode ; a major-mode for editing Lua scripts @@ -963,6 +962,19 @@ #+end_src +* Expand region + + This is neat, and I use it way less than I should. + + #+begin_src emacs-lisp + + ;; Increase selected region by semantic units + (use-package expand-region + :defer t + :bind ("C-=" . er/expand-region)) + + #+end_src + * Interactive functions <> @@ -1653,15 +1665,6 @@ #+end_src -** Bindings for [[https://github.com/magnars/expand-region.el][expand-region]] - - #+begin_src emacs-lisp - - (define-key custom-bindings-map (kbd "C->") 'er/expand-region) - (define-key custom-bindings-map (kbd "C-<") 'er/contract-region) - - #+end_src - ** Bindings for [[https://github.com/magnars/multiple-cursors.el][multiple-cursors]] #+begin_src emacs-lisp