mirror of
https://github.com/larstvei/dot-emacs.git
synced 2024-11-26 07:28:31 +00:00
use-package expand-region
This commit is contained in:
parent
307d9618bb
commit
1d0f72aa12
25
init.org
25
init.org
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user