Make parser lookup major-mode derived