aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorEli Zaretskii2015-12-12 12:53:35 +0200
committerEli Zaretskii2015-12-12 12:53:35 +0200
commit5cc4f33b4ad0de0024c11ec41bcefcab34493efb (patch)
tree179918cb0c05727a0e51a107644826488e13450b /etc
parentacae1834c619ad1a0c8db8b6421291070087a004 (diff)
downloademacs-5cc4f33b4ad0de0024c11ec41bcefcab34493efb.tar.gz
emacs-5cc4f33b4ad0de0024c11ec41bcefcab34493efb.zip
Document multi-mode indentation facilities
* doc/lispref/text.texi (Mode-Specific Indent): Document 'prog-indentation-context', 'prog-first-column', and 'prog-widen'. * lisp/progmodes/prog-mode.el (prog-indentation-context) (prog-widen): Doc fixes.
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