(defun newline-previous () "Insert a blank line above the cursor and move the cursor up one line." (interactive) (beginning-of-line) (newline) (previous-line) (indent-according-to-mode)) ;; From https://github.com/defunkt/textmate.el (defun newline-next () "Inserts an indented newline after the current line and moves the point to it." (interactive) (end-of-line) (newline-and-indent))