Subject: copy-and-insert-previous-line

From: Mads Jensen <[email-masked]>
Date: Sun, 28 Nov 2010 11:27:53 +0100

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