2019-07-08 21:42:19 +02:00
|
|
|
;;; lang/ocaml/autoload.el -*- lexical-binding: t; -*-
|
|
|
|
|
|
|
|
;;;###autoload
|
2019-11-11 23:47:27 -05:00
|
|
|
(defun +ocaml/comment-indent-new-line (&optional _)
|
2019-07-08 21:42:19 +02:00
|
|
|
"Break line at point and indent, continuing comment if within one."
|
|
|
|
(interactive)
|
|
|
|
(comment-indent-new-line)
|
2020-02-25 22:25:39 -05:00
|
|
|
(when (eq (char-before) ?*)
|
|
|
|
(just-one-space))
|
|
|
|
(unless (eq (char-after) 32)
|
|
|
|
(save-excursion (insert " "))))
|