Simplify implementation of prelude-smart-open-line-above
As suggested by bbatsov.
This commit is contained in:
parent
d4bf21e6be
commit
f0c2618a3e
1 changed files with 2 additions and 4 deletions
|
@ -83,10 +83,8 @@
|
||||||
"Insert an empty line above the current line.
|
"Insert an empty line above the current line.
|
||||||
Position the cursor at it's beginning, according to the current mode"
|
Position the cursor at it's beginning, according to the current mode"
|
||||||
(interactive)
|
(interactive)
|
||||||
(beginning-of-line)
|
(previous-line)
|
||||||
(newline)
|
(prelude-smart-open-line))
|
||||||
(forward-line -1)
|
|
||||||
(indent-according-to-mode))
|
|
||||||
|
|
||||||
(defun prelude-smart-open-line ()
|
(defun prelude-smart-open-line ()
|
||||||
"Insert an empty line after the current line.
|
"Insert an empty line after the current line.
|
||||||
|
|
Loading…
Reference in a new issue