Anchor auto-mode-alist patterns to end-of-line