From a44d670dc9b632651b5b6d2a796cd2d48c18f0d2 Mon Sep 17 00:00:00 2001 From: Lucas Sta Maria Date: Mon, 26 Feb 2024 16:46:28 -0500 Subject: [PATCH] feat(emacs): add `meow-yank-above` command Signed-off-by: Lucas Sta Maria --- .emacs.d/include/misc.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.emacs.d/include/misc.el b/.emacs.d/include/misc.el index fe5286f..2ad18c3 100644 --- a/.emacs.d/include/misc.el +++ b/.emacs.d/include/misc.el @@ -61,6 +61,13 @@ ;; meow (meow-global-mode) +(defun meow-yank-above () + "Yank the killed text to the line above." + (interactive) + (save-excursion + (move-beginning-of-line nil) + (meow-yank))) + (defun meow-change-line () "Kill rest of line and switch to insert state." (interactive) @@ -144,6 +151,7 @@ '("x" . meow-save) '("X" . meow-sync-grab) '("y" . meow-yank) + '("Y" . meow-yank-above) '("z" . meow-pop-selection) '("'" . repeat) '("" . ignore)))