summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2018-03-12 11:53:43 +1100
committerMaxime Coste <mawww@kakoune.org>2018-03-12 11:53:43 +1100
commiteee4576743d4eb4cbf8ad04889cc78806da5e1b7 (patch)
tree6de8fd196acea79f85bf88397a81d5bfe811898e
parent11d6aefc91e730e12663ef74caec992ee52b7409 (diff)
parent5ba8293d2b893498cf51b229b6f6b9654485beea (diff)
Merge remote-tracking branch 'Delapouite/scopes'
-rw-r--r--doc/pages/scopes.asciidoc5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/pages/scopes.asciidoc b/doc/pages/scopes.asciidoc
index d4ade8d7..11bba850 100644
--- a/doc/pages/scopes.asciidoc
+++ b/doc/pages/scopes.asciidoc
@@ -12,8 +12,10 @@ Scopes are named as follows:
*window*::
context linked to the window displaying a buffer
+
*buffer*::
context linked directly to the buffer
+
*global*::
global context linked to the instance of Kakoune
@@ -27,6 +29,9 @@ The above priority line implies that objects can have individual values that
will be resolved first in the *window* scope (highest priority), then in
the *buffer* scope, and finally in the *global* scope (lowest priority).
+The `set-option` and `unset-option` commands also accept *current* as
+a valid scope name. It refers to the narrowest scope the option is set in.
+
== Uses
The scope paradigm is very useful as it allows the user to customize the