From 1b7a80d8b780cb946e48c99141888d0182aed01a Mon Sep 17 00:00:00 2001 From: Sergey Avseyev Date: Sat, 17 May 2014 12:04:06 +0300 Subject: [PATCH] prelude-evil: add 'nmap Y y$' equivalent --- modules/prelude-evil.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/prelude-evil.el b/modules/prelude-evil.el index 803daf7..652a560 100644 --- a/modules/prelude-evil.el +++ b/modules/prelude-evil.el @@ -62,6 +62,11 @@ (evil-ex-define-cmd "linum" 'linum-mode) (evil-ex-define-cmd "Align" 'align-regexp) +(defun yank-to-end-of-line () + "Yank to end of line." + (interactive) + (evil-yank (point) (point-at-eol))) +(define-key evil-normal-state-map "Y" 'yank-to-end-of-line) ;; Scrolling (defun prelude-evil-scroll-down-other-window ()