More descriptive signature for set-electric!

And mention that electric-indent-local-mode is enabled by this in its
docstring.
This commit is contained in:
Henrik Lissner 2018-10-16 18:30:44 -04:00
parent eb1440caa9
commit 51190fa771
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -2,8 +2,12 @@
;;;###autodef
(defun set-electric! (modes &rest plist)
"Declare :words (list of strings) or :chars (lists of chars) in MODES that
trigger electric indentation."
"Declare that WORDS (list of strings) or CHARS (lists of chars) should trigger
electric indentation.
Enables `electric-indent-local-mode' in MODES.
\(fn MODES &key WORDS CHARS)"
(declare (indent defun))
(dolist (mode (doom-enlist modes))
(let ((hook (intern (format "%s-hook" mode)))