Add expand region to config.org + remove old file

This commit is contained in:
laurensmiers 2018-06-11 23:35:53 +02:00
parent 6e1fb2c769
commit 8eec08cfd8
2 changed files with 18 additions and 7 deletions

View file

@ -419,6 +419,24 @@ https://github.com/joaotavora/yasnippet
) )
#+END_SRC #+END_SRC
* Expand-region
Expand region increases the selected region by semantic units.
I also enable =pending-delete-mode=, this means when we mark a region and start typing,
the text within the mark is deleted with the new typed text and the mark disappears.
https://github.com/magnars/expand-region.el
#+BEGIN_SRC emacs-lisp
(use-package expand-region
:ensure t
:init
(pending-delete-mode t)
:config
(global-set-key (kbd "C-=") 'er/expand-region)
)
#+END_SRC
* Old stuff, maybe usefull for lookup later * Old stuff, maybe usefull for lookup later
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp

View file

@ -1,7 +0,0 @@
(require 'expand-region)
(pending-delete-mode t)
(global-set-key (kbd "C-=") 'er/expand-region)
(provide 'setup-expand-region)