NeoMutt  2022-04-29-215-gc12b98
Teaching an old dog new tricks
DOXYGEN
config.c
Go to the documentation of this file.
1
29#include "config.h"
30#include <stddef.h>
31#include <config/lib.h>
32#include <stdbool.h>
33
34static struct ConfigDef PatternVars[] = {
35 // clang-format off
36 { "external_search_command", DT_STRING|DT_COMMAND, 0, 0, NULL,
37 "External search command"
38 },
39 { "pattern_format", DT_STRING, IP "%2n %-15e %d", 0, NULL,
40 "printf-like format string for the pattern completion menu"
41 },
42 { "thorough_search", DT_BOOL, true, 0, NULL,
43 "Decode headers and messages before searching them"
44 },
45 { NULL },
46 // clang-format on
47};
48
53{
55}
Convenience wrapper for the config headers.
bool config_init_pattern(struct ConfigSet *cs)
Register pattern config variables - Implements module_init_config_t -.
Definition: config.c:52
static struct ConfigDef PatternVars[]
Definition: config.c:34
bool cs_register_variables(const struct ConfigSet *cs, struct ConfigDef vars[], uint32_t flags)
Register a set of config items.
Definition: set.c:276
#define IP
Definition: set.h:54
Definition: set.h:64
Container for lots of config items.
Definition: set.h:260
#define DT_BOOL
boolean option
Definition: types.h:30
#define DT_STRING
a string
Definition: types.h:41
#define DT_COMMAND
A command.
Definition: types.h:50