From 8eec08cfd8ff55d6c2f4eba3d3a380038d80c518 Mon Sep 17 00:00:00 2001 From: laurensmiers Date: Mon, 11 Jun 2018 23:35:53 +0200 Subject: [PATCH] Add expand region to config.org + remove old file --- config.org | 18 ++++++++++++++++++ custom/setup-expand-region.el | 7 ------- 2 files changed, 18 insertions(+), 7 deletions(-) delete mode 100644 custom/setup-expand-region.el diff --git a/config.org b/config.org index ea4334f..e99ffea 100644 --- a/config.org +++ b/config.org @@ -419,6 +419,24 @@ https://github.com/joaotavora/yasnippet ) #+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 #+BEGIN_SRC emacs-lisp diff --git a/custom/setup-expand-region.el b/custom/setup-expand-region.el deleted file mode 100644 index 1734ac0..0000000 --- a/custom/setup-expand-region.el +++ /dev/null @@ -1,7 +0,0 @@ -(require 'expand-region) - -(pending-delete-mode t) - -(global-set-key (kbd "C-=") 'er/expand-region) - -(provide 'setup-expand-region)