Fix gp (+evil/reselect-paste)

This commit is contained in:
Henrik Lissner 2017-03-02 11:42:09 -05:00
parent 75585fa90f
commit ea8ed1f997
2 changed files with 9 additions and 1 deletions

View file

@ -16,6 +16,14 @@
(evil-normal-state) (evil-normal-state)
(evil-visual-restore)) (evil-visual-restore))
;;;###autoload
(defun +evil/reselect-paste ()
"Go back into visual mode and reselect the last pasted region."
(interactive)
(evil-goto-mark ?\[)
(evil-visual-state)
(evil-goto-mark ?\]))
;;;###autoload ;;;###autoload
(defun +evil*ex-replace-special-filenames (file-name) (defun +evil*ex-replace-special-filenames (file-name)
"Replace special symbols in FILE-NAME. Modified to include other substitution "Replace special symbols in FILE-NAME. Modified to include other substitution

View file

@ -206,7 +206,7 @@
;; Navigation ;; Navigation
:nv "K" 'smart-up :nv "K" 'smart-up
:m "gD" 'doom/find-def :m "gD" 'doom/find-def
:n "gp" 'doom/editor-reselect-paste :n "gp" '+evil/reselect-paste
:n "gc" 'evil-commentary :n "gc" 'evil-commentary
:n "gx" 'evil-exchange :n "gx" 'evil-exchange
:n "gr" '+repl:eval-region :n "gr" '+repl:eval-region