1
0
Fork 0

feat(emacs): add meow-yank-above command

Signed-off-by: Lucas Sta Maria <lucas@priime.dev>
This commit is contained in:
Lucas Sta Maria 2024-02-26 16:46:28 -05:00
parent ffb1e9dc45
commit a44d670dc9
No known key found for this signature in database
GPG key ID: F07FB16A826E3B47

View file

@ -61,6 +61,13 @@
;; meow ;; meow
(meow-global-mode) (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 () (defun meow-change-line ()
"Kill rest of line and switch to insert state." "Kill rest of line and switch to insert state."
(interactive) (interactive)
@ -144,6 +151,7 @@
'("x" . meow-save) '("x" . meow-save)
'("X" . meow-sync-grab) '("X" . meow-sync-grab)
'("y" . meow-yank) '("y" . meow-yank)
'("Y" . meow-yank-above)
'("z" . meow-pop-selection) '("z" . meow-pop-selection)
'("'" . repeat) '("'" . repeat)
'("<escape>" . ignore))) '("<escape>" . ignore)))