From fa9bb097a35afa9b9f59ee726adb74684df63eab Mon Sep 17 00:00:00 2001 From: Anton Ilin Date: Thu, 23 Aug 2012 10:02:44 +0300 Subject: [PATCH] Use forward-line instead of next-/previous-line. --- prelude/prelude-core.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/prelude/prelude-core.el b/prelude/prelude-core.el index 849331b..0d53499 100644 --- a/prelude/prelude-core.el +++ b/prelude/prelude-core.el @@ -103,21 +103,21 @@ the curson at its beginning, according to the current mode." (interactive) (move-end-of-line nil) (open-line 1) - (next-line 1) + (forward-line 1) (indent-according-to-mode)) (defun prelude-move-line-up () "Move up the current line." (interactive) (transpose-lines 1) - (previous-line 2)) + (forward-line -2)) (defun prelude-move-line-down () "Move down the current line." (interactive) - (next-line 1) + (forward-line 1) (transpose-lines 1) - (previous-line 1)) + (forward-line -1)) ;; add the ability to copy and cut the current line, without marking it (defadvice kill-ring-save (before slick-copy activate compile)