I'm trying to make a function that moves to the end of line and inserts a newline.
(defun newline-below ()
(interactive)
(move-end-of-line)
(newline)
)
However, I get a cryptic error when I try to run it.
newline-below: Wrong number of arguments: #[(arg) "
The function move-end-of-line
needs an argument (try C-hf while the cursor is over the function). Just nil
might work for your purpose:
(move-end-of-line nil)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With