From 1b7a80d8b780cb946e48c99141888d0182aed01a Mon Sep 17 00:00:00 2001 From: Sergey Avseyev Date: Sat, 17 May 2014 12:04:06 +0300 Subject: [PATCH 1/2] 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 () From fa45eba962c309aa8cec49e434ed5d521a6bd09e Mon Sep 17 00:00:00 2001 From: Sergey Avseyev Date: Sat, 14 Jun 2014 20:37:27 +0300 Subject: [PATCH 2/2] Apply prelude codestyle --- modules/prelude-evil.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/prelude-evil.el b/modules/prelude-evil.el index 652a560..7b20233 100644 --- a/modules/prelude-evil.el +++ b/modules/prelude-evil.el @@ -62,11 +62,13 @@ (evil-ex-define-cmd "linum" 'linum-mode) (evil-ex-define-cmd "Align" 'align-regexp) -(defun yank-to-end-of-line () +(defun prelude-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) + +(define-key evil-normal-state-map + (kbd "Y") 'prelude-yank-to-end-of-line) ;; Scrolling (defun prelude-evil-scroll-down-other-window ()