emacs: Support for customizing search result display