added semantic selection

This commit is contained in:
Abraham Raji 2020-01-11 17:34:31 +05:30
parent af988882d5
commit b41788f146

View file

@ -9,3 +9,9 @@ If you write any code, you may enjoy this. Typing the first character in a set o
))
(electric-pair-mode t)
#+END_SRC
* Semantic Selection
So what this package does is it select text in way that's sensibe towards the syntax. So for example if I'm in a html tag that is the child of another tag, invoking the keybinding for this package will first select the child then the parent and hierarchichally move upwards. No need to drag the mouse around, this is selection done sensibly.
#+BEGIN_SRC emacs-lisp
(use-package expand-region
:bind ("C-=" . er/expand-region))
#+END_SRC