[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Auto-mode-alist, issue with regexp
From: |
Nikolaj Schumacher |
Subject: |
Re: Auto-mode-alist, issue with regexp |
Date: |
Fri, 22 May 2009 19:14:19 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.93 (darwin) |
Saptarshi <saptarshi.guha@gmail.com> 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))
The entire path is matched against the expression, so the ^ is the
problem. Try:
"/mail\\.google\\.com"
regards,
Nikolaj Schumacher