From 51190fa7716efa2e74857a1fbce9ef1b131a739a Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 16 Oct 2018 18:30:44 -0400 Subject: [PATCH] More descriptive signature for set-electric! And mention that electric-indent-local-mode is enabled by this in its docstring. --- modules/emacs/electric/autoload.el | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/emacs/electric/autoload.el b/modules/emacs/electric/autoload.el index c75d2fe0e..0b18f8d6e 100644 --- a/modules/emacs/electric/autoload.el +++ b/modules/emacs/electric/autoload.el @@ -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)))