mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-28 13:44:12 +01:00
doc: use envvar directive and role for environment variables
Make man1/notmuch.rst the single point of truth for describing notmuch environment variables. Use the envvar directive for that, and reference them with the envvar role. Drive-by cleanup configuration file and hook directory search order documentation.
This commit is contained in:
parent
ff4e81ac57
commit
574b2436ee
4 changed files with 49 additions and 49 deletions
|
@ -35,16 +35,6 @@ Supported options for **compact** include
|
||||||
``--quiet``
|
``--quiet``
|
||||||
Do not report database compaction progress to stdout.
|
Do not report database compaction progress to stdout.
|
||||||
|
|
||||||
ENVIRONMENT
|
|
||||||
===========
|
|
||||||
|
|
||||||
The following environment variables can be used to control the behavior
|
|
||||||
of notmuch.
|
|
||||||
|
|
||||||
**NOTMUCH\_CONFIG**
|
|
||||||
Specifies the location of the notmuch configuration file. Notmuch
|
|
||||||
will use ${HOME}/.notmuch-config if this variable is not set.
|
|
||||||
|
|
||||||
SEE ALSO
|
SEE ALSO
|
||||||
========
|
========
|
||||||
|
|
||||||
|
|
|
@ -235,39 +235,39 @@ paths are presumed relative to `$HOME` for items in section
|
||||||
:any:`notmuch-search-terms(7)` for more information about named
|
:any:`notmuch-search-terms(7)` for more information about named
|
||||||
queries.
|
queries.
|
||||||
|
|
||||||
ENVIRONMENT
|
|
||||||
===========
|
|
||||||
|
|
||||||
The following environment variables can be used to control the behavior
|
|
||||||
of notmuch.
|
|
||||||
|
|
||||||
**NOTMUCH\_CONFIG**
|
|
||||||
Specifies the location of the notmuch configuration file.
|
|
||||||
|
|
||||||
**NOTMUCH_PROFILE**
|
|
||||||
Selects among notmuch configurations.
|
|
||||||
|
|
||||||
FILES
|
FILES
|
||||||
=====
|
=====
|
||||||
|
|
||||||
CONFIGURATION
|
CONFIGURATION
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
If ``NOTMUCH_CONFIG`` is unset, notmuch tries (in order)
|
Notmuch configuration file search order:
|
||||||
|
|
||||||
- ``$XDG_CONFIG_HOME/notmuch/<profile>/config`` where ``<profile>`` is
|
1. File specified by ``--config=FILE`` global option; see
|
||||||
defined by ``$NOTMUCH_PROFILE`` or "default"
|
:any:`notmuch(1)`.
|
||||||
- ``${HOME}/.notmuch-config<profile>`` where ``<profile>`` is
|
|
||||||
``.$NOTMUCH_PROFILE`` or ""
|
2. File specified by :envvar:`NOTMUCH_CONFIG` environment variable.
|
||||||
|
|
||||||
|
3. ``$XDG_CONFIG_HOME/notmuch/<profile>/config`` where ``<profile>``
|
||||||
|
is defined by :envvar:`NOTMUCH_PROFILE` environment variable if
|
||||||
|
set, ``$XDG_CONFIG_HOME/notmuch/default/config`` otherwise.
|
||||||
|
|
||||||
|
4. ``$HOME/.notmuch-config.<profile>`` where ``<profile>`` is defined
|
||||||
|
by :envvar:`NOTMUCH_PROFILE` environment variable if set,
|
||||||
|
``$HOME/.notmuch-config`` otherwise.
|
||||||
|
|
||||||
Hooks
|
Hooks
|
||||||
-----
|
-----
|
||||||
|
|
||||||
If ``database.hook_dir`` is unset, notmuch tries (in order)
|
Notmuch hook directory search order:
|
||||||
|
|
||||||
- ``$XDG_CONFIG_HOME/notmuch/<profile>/hooks`` where ``<profile>`` is
|
1. Directory specified by ``database.hook_dir`` configuration option.
|
||||||
defined by ``$NOTMUCH_PROFILE`` or "default"
|
|
||||||
- ``<database.path>/.notmuch/hooks``
|
2. ``$XDG_CONFIG_HOME/notmuch/<profile>/hooks`` where ``<profile>``
|
||||||
|
is defined by :envvar:`NOTMUCH_PROFILE` environment variable if
|
||||||
|
set, ``$XDG_CONFIG_HOME/notmuch/default/hooks`` otherwise.
|
||||||
|
|
||||||
|
3. ``<database.path>/.notmuch/hooks``
|
||||||
|
|
||||||
SEE ALSO
|
SEE ALSO
|
||||||
========
|
========
|
||||||
|
|
|
@ -72,11 +72,13 @@ Options may be specified multiple times.
|
||||||
ENVIRONMENT VARIABLES
|
ENVIRONMENT VARIABLES
|
||||||
=====================
|
=====================
|
||||||
|
|
||||||
**EMACS**
|
.. envvar:: EMACS
|
||||||
Name of emacs command to invoke. Defaults to "emacs".
|
|
||||||
|
|
||||||
**EMACSCLIENT**
|
Name of emacs command to invoke. Defaults to "emacs".
|
||||||
Name of emacsclient command to invoke. Defaults to "emacsclient".
|
|
||||||
|
.. envvar:: EMACSCLIENT
|
||||||
|
|
||||||
|
Name of emacsclient command to invoke. Defaults to "emacsclient".
|
||||||
|
|
||||||
SEE ALSO
|
SEE ALSO
|
||||||
========
|
========
|
||||||
|
|
|
@ -52,7 +52,7 @@ Supported global options for ``notmuch`` include
|
||||||
|
|
||||||
``--config=FILE``
|
``--config=FILE``
|
||||||
Specify the configuration file to use. This overrides any
|
Specify the configuration file to use. This overrides any
|
||||||
configuration file specified by ${NOTMUCH\_CONFIG}. The empty
|
configuration file specified by :envvar:`NOTMUCH_CONFIG`. The empty
|
||||||
string is a permitted and sometimes useful value of *FILE*, which
|
string is a permitted and sometimes useful value of *FILE*, which
|
||||||
tells ``notmuch`` to use only configuration metadata from the database.
|
tells ``notmuch`` to use only configuration metadata from the database.
|
||||||
|
|
||||||
|
@ -79,7 +79,7 @@ use, (or to reconfigure it later).
|
||||||
The setup command will prompt for your full name, your primary email
|
The setup command will prompt for your full name, your primary email
|
||||||
address, any alternate email addresses you use, and the directory
|
address, any alternate email addresses you use, and the directory
|
||||||
containing your email archives. Your answers will be written to a
|
containing your email archives. Your answers will be written to a
|
||||||
configuration file in ${NOTMUCH\_CONFIG} (if set) or
|
configuration file in :envvar:`NOTMUCH_CONFIG` (if set) or
|
||||||
${HOME}/.notmuch-config . This configuration file will be created with
|
${HOME}/.notmuch-config . This configuration file will be created with
|
||||||
descriptive comments, making it easy to edit by hand later to change the
|
descriptive comments, making it easy to edit by hand later to change the
|
||||||
configuration. Or you can run **notmuch setup** again to change the
|
configuration. Or you can run **notmuch setup** again to change the
|
||||||
|
@ -128,8 +128,8 @@ CUSTOM COMMANDS
|
||||||
---------------
|
---------------
|
||||||
|
|
||||||
If the given command is not known to notmuch, notmuch tries to execute
|
If the given command is not known to notmuch, notmuch tries to execute
|
||||||
the external **notmuch-<subcommand>** in ${PATH} instead. This allows
|
the external **notmuch-<subcommand>** in :envvar:`PATH` instead. This
|
||||||
users to have their own notmuch related tools to be run via the
|
allows users to have their own notmuch related tools to be run via the
|
||||||
notmuch command. By design, this does not allow notmuch's own commands
|
notmuch command. By design, this does not allow notmuch's own commands
|
||||||
to be overridden using external commands.
|
to be overridden using external commands.
|
||||||
|
|
||||||
|
@ -153,18 +153,26 @@ ENVIRONMENT
|
||||||
The following environment variables can be used to control the behavior
|
The following environment variables can be used to control the behavior
|
||||||
of notmuch.
|
of notmuch.
|
||||||
|
|
||||||
**NOTMUCH\_CONFIG**
|
.. envvar:: NOTMUCH_CONFIG
|
||||||
Specifies the location of the notmuch configuration file. Notmuch
|
|
||||||
will use ${HOME}/.notmuch-config if this variable is not set.
|
|
||||||
|
|
||||||
**NOTMUCH\_TALLOC\_REPORT**
|
Specifies the location of the notmuch configuration file. See
|
||||||
Location to write a talloc memory usage report. See
|
:any:`notmuch-config(1)` for details.
|
||||||
**talloc\_enable\_leak\_report\_full** in :manpage:`talloc(3)` for more
|
|
||||||
information.
|
|
||||||
|
|
||||||
**NOTMUCH\_DEBUG\_QUERY**
|
.. envvar:: NOTMUCH_PROFILE
|
||||||
If set to a non-empty value, the notmuch library will print (to
|
|
||||||
stderr) Xapian queries it constructs.
|
Selects among notmuch configurations. See :any:`notmuch-config(1)`
|
||||||
|
for details.
|
||||||
|
|
||||||
|
.. envvar:: NOTMUCH_TALLOC_REPORT
|
||||||
|
|
||||||
|
Location to write a talloc memory usage report. See
|
||||||
|
**talloc\_enable\_leak\_report\_full** in :manpage:`talloc(3)` for more
|
||||||
|
information.
|
||||||
|
|
||||||
|
.. envvar:: NOTMUCH_DEBUG_QUERY
|
||||||
|
|
||||||
|
If set to a non-empty value, the notmuch library will print (to
|
||||||
|
stderr) Xapian queries it constructs.
|
||||||
|
|
||||||
SEE ALSO
|
SEE ALSO
|
||||||
========
|
========
|
||||||
|
|
Loading…
Reference in a new issue