all repos — nixfiles @ e7657d6ba54ad5714657cff9be86ec416d342a4c

System and user configuration, managed by nix and home-manager

Migrate repository from mercurial without history

Alan Pearce
commit

e7657d6ba54ad5714657cff9be86ec416d342a4c

parent

6bec14c2d18c915a3510aba36a37e78a8b83170f

1 file changed, 20 insertions(+), 0 deletions(-)

changed files
A emacs/elisp/shuffle-lines.el
@@ -0,0 +1,20 @@
+;;;###autoload +(defun move-line-down () + (interactive) + (let ((col (current-column))) + (save-excursion + (forward-line) + (transpose-lines 1)) + (forward-line) + (move-to-column col))) + +;;;###autoload +(defun move-line-up () + (interactive) + (let ((col (current-column))) + (save-excursion + (forward-line) + (transpose-lines -1)) + (move-to-column col))) + +(provide 'shuffle-lines)