[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Restricting 'add-hook to a specific file extension
From: |
Tim Johnson |
Subject: |
Re: Restricting 'add-hook to a specific file extension |
Date: |
Mon, 06 Mar 2006 02:59:11 -0000 |
User-agent: |
slrn/0.9.8.0 (Linux) |
On 2006-03-01, Kevin Rodgers <ihs_4664@yahoo.com> wrote:
> Tim Johnson wrote:
> Here's a better way to match the file name:
>
> (add-hook 'scheme-mode-hook
> (lambda ()
> (let ((case-fold-search nil))
> (if (string-match "\\.LSP\\'" buffer-file-name)
> ;; code follows
> ()
> )))) ;; end 'add-hook
>
You're right. This I will use.
thanks!
--
Tim Johnson <tim@johnsons-web.com>
http://www.alaska-internet-solutions.com