NeoMutt  2023-03-22-27-g3cb248
Teaching an old dog new tricks
config.c File Reference

Config used by libhistory. More...

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

Go to the source code of this file.


bool config_init_history (struct ConfigSet *cs)
 Register history config variables - Implements module_init_config_t -. More...


static struct ConfigDef HistoryVars []
 Config definitions for the command history. More...

Detailed Description

Config used by libhistory.

  • Richard Russon

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

Definition in file config.c.

Variable Documentation

◆ HistoryVars

struct ConfigDef HistoryVars[]
Initial value:
= {
{ "history", DT_NUMBER|DT_NOT_NEGATIVE, 10, 0, NULL,
"Number of history entries to keep in memory per category"
{ "history_file", DT_PATH|DT_PATH_FILE, IP "~/.mutthistory", 0, NULL,
"File to save history in"
{ "history_remove_dups", DT_BOOL, false, 0, NULL,
"Remove duplicate entries from the history"
{ "save_history", DT_NUMBER|DT_NOT_NEGATIVE, 0, 0, NULL,
"Number of history entries to save per category"
{ NULL },
#define IP
Definition: set.h:54
#define DT_BOOL
boolean option
Definition: types.h:30
#define DT_PATH_FILE
Path is a file.
Definition: types.h:56
#define DT_PATH
a path to a file/directory
Definition: types.h:36
Negative numbers are not allowed.
Definition: types.h:49
#define DT_NUMBER
a number
Definition: types.h:35

Config definitions for the command history.

Definition at line 37 of file config.c.