Function: kotl-mode:open-line
kotl-mode:open-line is an interactive and byte-compiled function
defined in kotl-mode.el.
Signature
(kotl-mode:open-line ARG)
Documentation
Insert a newline and leave point before it.
With ARG N, insert N newlines.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/kotl/kotl-mode.el
(defun kotl-mode:open-line (arg)
"Insert a newline and leave point before it.
With ARG N, insert N newlines."
(interactive "*p")
(let* ((bolp (and (kotl-mode:bolp) (not (kotl-mode:bocp))))
(indent (kcell-view:indent))
(add-prefix (and (stringp fill-prefix)
(not (string-empty-p fill-prefix)))))
(while (> arg 0)
(save-excursion
(insert ?\n)
(if (and (not bolp) add-prefix)
(insert fill-prefix)
(insert-char ?\ indent)))
(setq arg (1- arg)))
(when (and bolp add-prefix)
(delete-horizontal-space)
(insert fill-prefix))))