Created
November 11, 2009 03:05
-
-
Save vkurup/231520 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; i'm an elisp newbie | |
(defun vk-copy-ledger-entry-to-bottom () | |
"Copy the current transaction to the bottom of the ledger" | |
(interactive) | |
(re-search-backward "^[12][90]") | |
(let ((beg (point))) | |
(forward-char) | |
(re-search-forward "^[12][90]") | |
(beginning-of-line) | |
(copy-region-as-kill beg (point)) | |
(goto-char (point-max)) | |
(yank '(non nil list)) | |
(forward-word) | |
(forward-char))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment