code: def _config(self, args, config):
          
          listings = dict((x.args, x) for x in config.subsections('listing'))
          listing = listings.get(args.listing)
          if listing is None:
              if args.listing == u'default':
                  return {'pattern': self._profile.list_default_pattern,
                          'order': self._profile.list_default_order}
              else:
                  raise KolektoRuntimeError('Unknown listing %r' % args.listing)
          else:
              return {'pattern': listing.get('pattern'),
                      'order': listing.get('order')}
docs: Get configuration for the current used listing.