mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Revert 3bb384f95
& improve ocaml comment continuation
Back to the default behavior because this implementation was too buggy. Solution needs a rework.
This commit is contained in:
@ -178,7 +178,7 @@
|
|||||||
(sp-local-pair "(*" "*)" :actions nil)
|
(sp-local-pair "(*" "*)" :actions nil)
|
||||||
(sp-local-pair "(*" "*"
|
(sp-local-pair "(*" "*"
|
||||||
:actions '(insert)
|
:actions '(insert)
|
||||||
:post-handlers '(("| " "SPC") ("|\n[i]*)[d-2]" "RET")))))
|
:post-handlers '(("| " "SPC") ("|[i]*)[d-2]" "RET")))))
|
||||||
|
|
||||||
(after! smartparens-markdown
|
(after! smartparens-markdown
|
||||||
(sp-with-modes '(markdown-mode gfm-mode)
|
(sp-with-modes '(markdown-mode gfm-mode)
|
||||||
|
@ -5,5 +5,7 @@
|
|||||||
"Break line at point and indent, continuing comment if within one."
|
"Break line at point and indent, continuing comment if within one."
|
||||||
(interactive)
|
(interactive)
|
||||||
(comment-indent-new-line)
|
(comment-indent-new-line)
|
||||||
(when (and +ocaml-prefix-comments-with-asterisk (eq (char-before) ?*))
|
(when (eq (char-before) ?*)
|
||||||
(just-one-space)))
|
(just-one-space))
|
||||||
|
(unless (eq (char-after) 32)
|
||||||
|
(save-excursion (insert " "))))
|
||||||
|
@ -1,9 +1,5 @@
|
|||||||
;;; lang/ocaml/config.el -*- lexical-binding: t; -*-
|
;;; lang/ocaml/config.el -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
(defvar +ocaml-prefix-comments-with-asterisk t
|
|
||||||
"If non-nil, continue block comments with a leading asterisk.")
|
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
;;; Packages
|
;;; Packages
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user