; Improve doc string of electric-indent internal

* lisp/electric.el (electric-indent--activate-indent-actions): Doc
string fix.
This commit is contained in:
Matthew Batson 2026-06-13 18:15:20 +10:00 committed by Paul Eggert
parent fa41113380
commit 0bc48084fb

View file

@ -275,7 +275,8 @@ mode set `electric-indent-inhibit', but this can be used as a workaround.")
(indent-region (point-min) (point-max))))))
(defun electric-indent--activate-indent-actions (enable)
"Enable the actions specified in `electric-indent-actions'."
"If ENABLE is non-nil, enable the actions in `electric-indent-actions'.
If ENABLE is nil, disable them."
(advice-remove 'yank #'electric-indent--yank-advice)
(remove-hook 'before-save-hook #'electric-indent-save-hook)
(when enable