bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fixing the configuration madness (was: [feature request] Colouring match


From: Leo Liu
Subject: Fixing the configuration madness (was: [feature request] Colouring matches in --result=grep outputs)
Date: Fri, 28 Feb 2014 20:02:40 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (OS X 10.9.2)

On 2014-01-22 00:40 +0800, Jason Hood wrote:
> Find attached a patch that implements both GLOBAL_OPTIONS (marking
> GTAGSTHROUGH as deprecated) and --color=never|always|auto (-C and
> --color are the same as --color=auto) for 6.2.10

I wonder if it is time to have a configuration hierarchy, for example:

GTAGSROOT/.globalrc -> $HOME/.globalrc -> SYSTEM_DIR/globalrc -> program 
defaults

in the order of most to least specific. The configuration is constructed
by all those files and allow options in more specific files to override
less ones.

The config file doesn't need to be named .globalrc or globalrc but don't
use two names i.e. .globalrc and gtags.conf.

Keep environment variables to minimal and prefer configuration options.

Give 'global' ability to set and get configuration options, dump
configuration for debugging etc.

A good practical example is 'git config'.

Thoughts?

Leo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]