From ada4e01f972a4a94610fa12a81f90d92de1f2468 Mon Sep 17 00:00:00 2001 From: Aaron Bull Schaefer Date: Mon, 18 Mar 2019 08:14:46 -0700 Subject: [PATCH 2/2] Document how to view the current value for options --- doc/pages/options.asciidoc | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/doc/pages/options.asciidoc b/doc/pages/options.asciidoc index b8f01892..6709bf22 100644 --- a/doc/pages/options.asciidoc +++ b/doc/pages/options.asciidoc @@ -317,3 +317,22 @@ are exclusively available to built-in options. Controls which messages will be displayed in the startup info box, only messages relating to a Kakoune version greater than this value will be displayed. Versions are written as a single number: Like `20180413` for version `2018.04.13` + +== Current values + +The current value for an option can be viewed using +<>. + +For example, the current value of the `BOM` option can be displayed in the +status line using the `echo` command: + +-------------- +echo %opt{BOM} +-------------- + +The current values for all options can be dumped to the *\*debug*\* buffer using +the following command: + +------------- +debug options +-------------