[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Auto-mode-alist, issue with regexp
From: |
Teemu Likonen |
Subject: |
Re: Auto-mode-alist, issue with regexp |
Date: |
Fri, 22 May 2009 16:43:10 GMT |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) |
On 2009-05-22 09:32 (-0700), Saptarshi wrote:
> I would like to open all files whose name starts with
> "mail.google.com" in org-mode.
> I tried,
> 1) --> (add-to-list 'auto-mode-alist '("^mail\\.google\\.com" . org-mode))
It has to match against full path name. I suggest you try this:
(add-to-list 'auto-mode-alist
'("/mail\\.google\\.com\\'" . org-mode))