Setting auto-mode-alist in emacs
I notice that the current auto-mode-alist entries all end with a single quote, for example ("\\.java\\'" . java-mode) What is the purpose of the single quote. I would have expected to see ("\\.java$" . java-mode) The reason I ask is that I am trying to get files with names matching regexp ^twiki\.corp.* to open in org-mode. I have tried the following without success: (add-to-list 'auto-mode-alist '("^twiki\\.corp" . org-mode)) (add-to-list 'auto-mode-alist '("\\'twiki\\.corp" . org-mode)) The following works: (add-to-list 'auto-mode-alist '("twiki\\.corp" . org-mode)) but is not quite what I