Back to the default behavior because this implementation was too buggy. Solution needs a rework.
11 lines
356 B
EmacsLisp
11 lines
356 B
EmacsLisp
;;; lang/ocaml/autoload.el -*- lexical-binding: t; -*-
|
|
|
|
;;;###autoload
|
|
(defun +ocaml/comment-indent-new-line (&optional _)
|
|
"Break line at point and indent, continuing comment if within one."
|
|
(interactive)
|
|
(comment-indent-new-line)
|
|
(when (eq (char-before) ?*)
|
|
(just-one-space))
|
|
(unless (eq (char-after) 32)
|
|
(save-excursion (insert " "))))
|