I have a couple of functions for inserting blank lines above and below the current line:
(defun insert-line-below () (interactive) (move-end-of-line nil) (open-line 1)) (defun insert-line-above () (interactive) (move-beginning-of-line nil) (newline-and-indent) (indent-according-to-mode))
Theyre working, but theres a minor annoyance. The point moves to either the beginning or end of line after calling the function.
How could I change these functions so that a new blank line is inserted, but my point returns where it was before the function call?