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:
parent
eb1440caa9
commit
51190fa771
1 changed files with 6 additions and 2 deletions
|
@ -2,8 +2,12 @@
|
||||||
|
|
||||||
;;;###autodef
|
;;;###autodef
|
||||||
(defun set-electric! (modes &rest plist)
|
(defun set-electric! (modes &rest plist)
|
||||||
"Declare :words (list of strings) or :chars (lists of chars) in MODES that
|
"Declare that WORDS (list of strings) or CHARS (lists of chars) should trigger
|
||||||
trigger electric indentation."
|
electric indentation.
|
||||||
|
|
||||||
|
Enables `electric-indent-local-mode' in MODES.
|
||||||
|
|
||||||
|
\(fn MODES &key WORDS CHARS)"
|
||||||
(declare (indent defun))
|
(declare (indent defun))
|
||||||
(dolist (mode (doom-enlist modes))
|
(dolist (mode (doom-enlist modes))
|
||||||
(let ((hook (intern (format "%s-hook" mode)))
|
(let ((hook (intern (format "%s-hook" mode)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue