doomemacs/modules/lang/ocaml/autoload.el
Henrik Lissner 56393420e5
lang/ocaml: ensure * in block comments are padded
(*
 * <-- ensures there is at least one space here
 *)
2019-07-08 22:08:59 +02:00

9 lines
279 B
EmacsLisp

;;; lang/ocaml/autoload.el -*- lexical-binding: t; -*-
;;;###autoload
(defun +ocaml/comment-indent-new-line ()
"Break line at point and indent, continuing comment if within one."
(interactive)
(comment-indent-new-line)
(when (eq (char-before) ?*)
(just-one-space)))