use-package expand-region

This commit is contained in:
larstvei 2023-06-12 02:36:10 +02:00
parent 307d9618bb
commit 1d0f72aa12

View File

@ -207,8 +207,7 @@
(let* ((package--builtins nil) (let* ((package--builtins nil)
(packages (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 go-mode ; Major mode for the Go programming language
haskell-mode ; A Haskell editing mode haskell-mode ; A Haskell editing mode
lua-mode ; a major-mode for editing Lua scripts lua-mode ; a major-mode for editing Lua scripts
@ -963,6 +962,19 @@
#+end_src #+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 * Interactive functions
<<sec:defuns>> <<sec:defuns>>
@ -1653,15 +1665,6 @@
#+end_src #+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]] ** Bindings for [[https://github.com/magnars/multiple-cursors.el][multiple-cursors]]
#+begin_src emacs-lisp #+begin_src emacs-lisp