From f0c2618a3eaca46ba858b31d81dceaa13a78f7f2 Mon Sep 17 00:00:00 2001
From: Abizer Nasir <abizern@abizern.org>
Date: Sun, 31 Mar 2013 15:52:06 +0100
Subject: [PATCH] Simplify implementation of prelude-smart-open-line-above

As suggested by bbatsov.
---
 core/prelude-core.el | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/core/prelude-core.el b/core/prelude-core.el
index 21fc85f..7ad9ab2 100644
--- a/core/prelude-core.el
+++ b/core/prelude-core.el
@@ -83,10 +83,8 @@
   "Insert an empty line above the current line.
 Position the cursor at it's beginning, according to the current mode"
   (interactive)
-  (beginning-of-line)
-  (newline)
-  (forward-line -1)
-  (indent-according-to-mode))
+  (previous-line)
+  (prelude-smart-open-line))
 
 (defun prelude-smart-open-line ()
   "Insert an empty line after the current line.