mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
@ -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)))
|
||||||
|
Reference in New Issue
Block a user