[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#7503: copy-and-insert-previous-line
From: |
Mads Jensen |
Subject: |
bug#7503: copy-and-insert-previous-line |
Date: |
Sun, 28 Nov 2010 11:27:53 +0100 |
User-agent: |
Thunderbird 2.0.0.24 (X11/20101027) |
I couldn't find a similar macro which did the same trick, so I wrote one
myself:
(defun copy-and-insert-previous-line ()
(interactive)
(save-excursion
(goto-line (1- (line-number-at-pos)))
(copy-current-line))
(yank))
It's quite useful for much of the typing I do.
--
Med Venlig Hilsen / Kind Regards,
Mads Jensen
Rubinsteinsvej 31,st.th
DK-2450 Kbh. SV
Denmark
signature.asc
Description: OpenPGP digital signature
- bug#7503: copy-and-insert-previous-line,
Mads Jensen <=
- bug#7503: copy-and-insert-previous-line, Andreas Schwab, 2010/11/28
- bug#7503: copy-and-insert-previous-line, Leo, 2010/11/28
- bug#7503: copy-and-insert-previous-line, Eli Zaretskii, 2010/11/28
- bug#7503: copy-and-insert-previous-line, martin rudalics, 2010/11/28
- bug#7503: copy-and-insert-previous-line, Eli Zaretskii, 2010/11/28
- bug#7503: copy-and-insert-previous-line, martin rudalics, 2010/11/28
- bug#7503: copy-and-insert-previous-line, Eli Zaretskii, 2010/11/28
- bug#7503: copy-and-insert-previous-line, martin rudalics, 2010/11/28
bug#7503: copy-and-insert-previous-line, Mads Jensen, 2010/11/28