NeoMutt  2024-12-12-14-g7b49f7
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
config.c File Reference

Config used by libcompose. More...

#include "config.h"
#include <stdbool.h>
#include <stddef.h>
#include "mutt/lib.h"
#include "config/lib.h"
#include "expando/lib.h"
#include "shared_data.h"
+ Include dependency graph for config.c:

Go to the source code of this file.

Macros

#define ISPELL   "ispell"
 

Functions

bool config_init_compose (struct ConfigSet *cs)
 Register compose config variables - Implements module_init_config_t -.
 

Variables

static const struct ExpandoDefinition ComposeFormatDef []
 Expando definitions.
 
static struct ConfigDef ComposeVars []
 Config definitions for compose.
 

Detailed Description

Config used by libcompose.

Authors
  • Matthew Hughes
  • Richard Russon
  • Dennis Schön

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Definition in file config.c.

Macro Definition Documentation

◆ ISPELL

#define ISPELL   "ispell"

Definition at line 40 of file config.c.

Variable Documentation

◆ ComposeFormatDef

const struct ExpandoDefinition ComposeFormatDef[]
static
Initial value:
= {
{ "*", "padding-soft", ED_GLOBAL, ED_GLO_PADDING_SOFT, node_padding_parse },
{ ">", "padding-hard", ED_GLOBAL, ED_GLO_PADDING_HARD, node_padding_parse },
{ "|", "padding-eol", ED_GLOBAL, ED_GLO_PADDING_EOL, node_padding_parse },
{ "a", "attach-count", ED_COMPOSE, ED_COM_ATTACH_COUNT, NULL },
{ "h", "hostname", ED_GLOBAL, ED_GLO_HOSTNAME, NULL },
{ "l", "attach-size", ED_COMPOSE, ED_COM_ATTACH_SIZE, NULL },
{ "v", "version", ED_GLOBAL, ED_GLO_VERSION, NULL },
{ NULL, NULL, 0, -1, NULL }
}
@ ED_COM_ATTACH_COUNT
ComposeAttachData, num_attachments()
Definition: shared_data.h:58
@ ED_COM_ATTACH_SIZE
ComposeAttachData, cum_attachs_size()
Definition: shared_data.h:59
@ ED_COMPOSE
Compose ED_COM_ ExpandoDataCompose.
Definition: domain.h:39
@ ED_GLOBAL
Global ED_GLO_ ExpandoDataGlobal.
Definition: domain.h:44
struct ExpandoNode * node_padding_parse(const char *str, struct ExpandoFormat *fmt, int did, int uid, ExpandoParserFlags flags, const char **parsed_until, struct ExpandoParseError *err)
Parse a Padding Expando - Implements ExpandoDefinition::parse() -.
Definition: node_padding.c:234
@ ED_GLO_PADDING_EOL
Padding to end-of-line.
Definition: uid.h:38
@ ED_GLO_VERSION
NeoMutt version.
Definition: uid.h:42
@ ED_GLO_PADDING_HARD
Hard Padding.
Definition: uid.h:39
@ ED_GLO_PADDING_SOFT
Soft Padding.
Definition: uid.h:40
@ ED_GLO_HOSTNAME
Local hostname.
Definition: uid.h:37

Expando definitions.

Config:

  • $compose_format

Definition at line 49 of file config.c.

◆ ComposeVars

struct ConfigDef ComposeVars[]
static

Config definitions for compose.

Definition at line 65 of file config.c.