Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Add to prelude core #291

Merged
merged 3 commits into from Mar 31, 2013

Conversation

Projects
None yet
2 participants
Contributor

Abizern commented Mar 31, 2013

I've added prelude-smart-open-line-above to prelude-core.

Sometimes - it's useful to be able to add code to the line above the one you are currently working on.

Abizern added some commits Mar 31, 2013

@Abizern Abizern Add prelude-smart-open-line-above defun to prelude-core.el
Opens a line above the current line and indents it.

The counterpart to prelude-smart-open-line (bound to S-ret)

The new defun is bound to C-S-ret and is documented in the README.
773578d
@Abizern Abizern Minor corrections to doc lines in prelude-core
They sound better grammatically.
d4bf21e

@bbatsov bbatsov commented on an outdated diff Mar 31, 2013

core/prelude-core.el
@@ -79,6 +79,15 @@
(indent-rigidly (point-min) (point-max) arg)
(clipboard-kill-ring-save (point-min) (point-max)))))
+(defun prelude-smart-open-line-above ()
+ "Insert an empty line above the current line.
+Position the cursor at it's beginning, according to the current mode"
+ (interactive)
+ (beginning-of-line)
@bbatsov

bbatsov Mar 31, 2013

Owner

This function could be reduced to (previous-line)(prelude-smart-open-line).

Contributor

Abizern commented Mar 31, 2013

Thanks for that - I've used your suggestion.

@bbatsov bbatsov added a commit that referenced this pull request Mar 31, 2013

@bbatsov bbatsov Merge pull request #291 from Abizern/add-to-prelude-core
Add to prelude core
aed6e3b

@bbatsov bbatsov merged commit aed6e3b into bbatsov:master Mar 31, 2013

@Abizern Abizern deleted the Abizern:add-to-prelude-core branch Mar 31, 2013

@celkins celkins pushed a commit to celkins/prelude that referenced this pull request Jun 11, 2015

@bbatsov bbatsov Merge pull request #291 from Abizern/add-to-prelude-core
Add to prelude core
267f12d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment