Skip to content

Instantly share code, notes, and snippets.

@ieure
Created January 3, 2011 19:38
Show Gist options
  • Save ieure/763830 to your computer and use it in GitHub Desktop.
Save ieure/763830 to your computer and use it in GitHub Desktop.
(defun newline-above-current-line ()
"Create a new line above the current line"
(interactive)
(beginning-of-line)
(newline-and-indent)
(previous-line)
(indent-according-to-mode))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment