config: use and implement list macros Use list macros instead of manually changing the head and/or tail of the variable list.