Re: notmuch-vim doesn't respect notmuch config defaults

Subject: Re: notmuch-vim doesn't respect notmuch config defaults

Date: Thu, 02 Oct 2014 13:24:18 +0200

To: sshilovsky@gmail.com, notmuch@notmuchmail.org

Cc:

From: David Bremner


Sergei Shilovsky <sshilovsky@gmail.com> writes:

> I would suggest to use `notmuch config list` to get configuration
> values in vim if possible

I guess this is a general question we haven't really resolved, namely
sharing configuration information between various notmuch frontends.
.notmuch-config is really the configuration file for the notmuch CLI; it
isn't read by library, so clients using language bindings won't see it
at all by default.

On a somewhat related note I've been thinking how to best associate
configuration information with a database (see e.g. the thread at
id:1411805835-3563-1-git-send-email-david@tethera.net ). Note that this
would not help this particular case.

Offhand, I wouldn't be personally to some interface at the library level
wrapping the reading and writing of ~/.notmuch-config, although as I
mentioned before, the size and complexity of notmuch-config.c perturb me
a little as far as being suitable for library code.

d

Thread: