aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS11
1 files changed, 10 insertions, 1 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 01447cde163..246ee37a848 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -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
322object keys sorted alphabetically. 322object 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.
325See `prog-indentation-context' and `prog-widen'. 326This allows better indentation support in modes that support multiple
327programming languages in the same buffer, like literate programming
328environments or ANTLR programs with embedded Python code.
329
330A major mode can provide indentation context for a sub-mode through
331the `prog-indentation-context' variable. To support this, modes that
332provide 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