reddit / emacs

How to keep text selection after indenting with evil mode

bad63r · 2022-03-07 21:12
Hi, I've fount solution for this issue here: [https://emacs.stackexchange.com/questions/48719/keep-text-selection-after-indenting-with-evil](https://emacs.stackexchange.com/questions/48719/keep-text-selection-after-indenting-with-evil) It works but I have couple of questions. Whenever I use evil-mode and when I select some text and move/indent it with "<" and ">" , in mini-buffer there is message `Wrong type argument: wholenump, nil` Should that concern me? Currently, this fix is placed outside of mine use-package config of evil-mode. Could that be the reason of the message in mini-buffer? It would be nice if I could place this fix inside of my use-package evil-mode config. Here is chunk of code from my init.el : [LINK](https://pastebin.com/cX4kB1rJ) Thanks in advance, bad63r
ideasman_42 · 2022-03-08 09:31
In general VIM & evil mode don't keep selection after using it to perform an operation. - You can restore the selection by pressing `gv` after indenting to get the selection back. - If you wanted to re-indent the selection press `.` (no need to re-select). If you really want to keep the selection you could write a macro, see this related question: https://emacs.stackexchange.com/questions/34894/34900#34900
tom_dl · 2022-03-08 14:25
wrt the error msg, can you open an issue on evil's GitHub? I'll take a look when I get a chance.
tom_dl · 2022-03-09 22:22
I fixed the bug which causes this error u/bad63r