diff options
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 11 |
1 files changed, 10 insertions, 1 deletions
| @@ -321,8 +321,17 @@ the ordering of object keys by default. | |||
| 321 | `json-pretty-print-buffer-ordered' pretty prints JSON objects with | 321 | `json-pretty-print-buffer-ordered' pretty prints JSON objects with |
| 322 | object keys sorted alphabetically. | 322 | object keys sorted alphabetically. |
| 323 | 323 | ||
| 324 | +++ | ||
| 324 | ** Prog mode has some support for multi-mode indentation. | 325 | ** Prog mode has some support for multi-mode indentation. |
| 325 | See `prog-indentation-context' and `prog-widen'. | 326 | This allows better indentation support in modes that support multiple |
| 327 | programming languages in the same buffer, like literate programming | ||
| 328 | environments or ANTLR programs with embedded Python code. | ||
| 329 | |||
| 330 | A major mode can provide indentation context for a sub-mode through | ||
| 331 | the `prog-indentation-context' variable. To support this, modes that | ||
| 332 | provide indentation should use `prog-widen' instead of `widen' and | ||
| 333 | `prog-first-column' instead of a literal zero. See the node | ||
| 334 | "Mode-Specific Indent" in the ELisp manual for more details. | ||
| 326 | 335 | ||
| 327 | ** Prettify Symbols mode | 336 | ** Prettify Symbols mode |
| 328 | 337 | ||