summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/source/commands.rst6
-rw-r--r--src/core/core.py8
2 files changed, 10 insertions, 4 deletions
diff --git a/doc/source/commands.rst b/doc/source/commands.rst
index 449d4095..fe106dea 100644
--- a/doc/source/commands.rst
+++ b/doc/source/commands.rst
@@ -146,6 +146,12 @@ These commands work in *any* tab.
just set the option to true if it’s currently false, and to false if it’s
currently true.
+ /set_default
+ **Usage:** ``/set_default [section] <option>``
+
+ Set the value of an option back to the default. For example,
+ ``/set_default resource`` will reset the ``resource`` option.
+
/toggle
**Usage:** ``/toggle <option>``
diff --git a/src/core/core.py b/src/core/core.py
index 65d8622c..54d48aa4 100644
--- a/src/core/core.py
+++ b/src/core/core.py
@@ -1767,7 +1767,7 @@ class Core(object):
desc=_("Set the value of an option in your configuration file."
" You can, for example, change your default nickname by "
"doing `/set default_nick toto` or your resource with `/set"
- "resource blabla`. You can also set options in specific "
+ " resource blabla`. You can also set options in specific "
"sections with `/set bindings M-i ^i` or in specific plugin"
" with `/set mpd_client| host 127.0.0.1`. `toggle` can be "
"used as a special value to toggle a boolean option."),
@@ -1775,9 +1775,9 @@ class Core(object):
completion=self.completion_set)
self.register_command('set_default', self.command_set_default,
usage=_("[section] <option>"),
- desc=_("Set the default value of an option. For example,"
- "`/set_default resource` will reset the default_resource"
- "option. You can also reset options in specific"
+ desc=_("Set the default value of an option. For example, "
+ "`/set_default resource` will reset the resource "
+ "option. You can also reset options in specific "
"sections by doing `/set_default section option`."),
shortdesc=_("Set the default value of an option"),
completion=self.completion_set_default)