]> git.eshelyaron.com Git - emacs.git/commit
New minor mode: `electric-block-comment-mode'
authorElías Gabriel Pérez <eg642616@gmail.com>
Mon, 17 Mar 2025 18:56:52 +0000 (12:56 -0600)
committerEshel Yaron <me@eshelyaron.com>
Mon, 31 Mar 2025 08:33:25 +0000 (10:33 +0200)
commite835c120a53e555e628f236480d4b78f243d0f0b
treeefa51b6d3a89f5b3ac2f57cc729b058c10423f4b
parente4ee4038459637da29dc879926ed5d65f5e1c79d
New minor mode: `electric-block-comment-mode'

This minor lets you automatically closing block comments after
typing `block-comment-start'.  Thus, typing "/*" in c-mode and
its derivatives automatically inserts "*/".  (Bug#77081)

* etc/NEWS: Add minor-mode item.
* lisp/electric.el
(electric-block-comment-post-self-insert-function): New function.
(electric-block-comment-mode): New minor mode definition.

(cherry picked from commit 989f9f01f731c0dd0382bad50f1c45894d69c3ea)
lisp/electric.el