Add convenience function for `auto-mode-alist` entries