diff options
| author | Eli Zaretskii | 2022-05-14 17:48:22 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2022-05-14 17:48:22 +0300 |
| commit | 8370caa835372ba7841e3822b0f929398c074e1a (patch) | |
| tree | 72b3330b8d8f4b919f6c4f483e6b91cea407c4c3 | |
| parent | f044da7704edfc7e6cf32606328d0735b77e60d9 (diff) | |
| download | emacs-8370caa835372ba7841e3822b0f929398c074e1a.tar.gz emacs-8370caa835372ba7841e3822b0f929398c074e1a.zip | |
; * lisp/electric.el (electric-indent-mode): Clarify doc (bug#22564).
| -rw-r--r-- | lisp/electric.el | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lisp/electric.el b/lisp/electric.el index 042fc90ccbe..4a35c1a2a14 100644 --- a/lisp/electric.el +++ b/lisp/electric.el | |||
| @@ -310,10 +310,16 @@ column specified by the function `current-left-margin'." | |||
| 310 | 310 | ||
| 311 | ;;;###autoload | 311 | ;;;###autoload |
| 312 | (define-minor-mode electric-indent-mode | 312 | (define-minor-mode electric-indent-mode |
| 313 | "Toggle on-the-fly reindentation (Electric Indent mode). | 313 | "Toggle on-the-fly reindentation of text lines (Electric Indent mode). |
| 314 | 314 | ||
| 315 | When enabled, this reindents whenever the hook `electric-indent-functions' | 315 | When enabled, this reindents whenever the hook `electric-indent-functions' |
| 316 | returns non-nil, or if you insert a character from `electric-indent-chars'. | 316 | returns non-nil, or if you insert one of the \"electric characters\". |
| 317 | The electric characters normally include the newline, but can | ||
| 318 | also include other characters as needed by the major mode; see | ||
| 319 | `electric-indent-chars' for the actual list. | ||
| 320 | |||
| 321 | By \"reindent\" we mean remove any existing indentation, and then | ||
| 322 | indent the line accordiung to context and rules of the major mode. | ||
| 317 | 323 | ||
| 318 | This is a global minor mode. To toggle the mode in a single buffer, | 324 | This is a global minor mode. To toggle the mode in a single buffer, |
| 319 | use `electric-indent-local-mode'." | 325 | use `electric-indent-local-mode'." |