[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: file association in emacs
From: |
Sebastian Tennant |
Subject: |
Re: file association in emacs |
Date: |
Fri, 25 May 2007 16:31:25 +0300 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.95 (gnu/linux) |
Quoth Thomas Hühn <newsgroups@thomas-huehn.de>:
> ypitrey <ypitrey@gmail.com> writes:
>
>> how can i have the m4-mode activated automatically when i open a .m4 or .m4x
>> file?
>>
>> more generally, how can i associate a syntaxic mode with a file type?
>
> Add something like ("\\.m4$" . m4-mode) to auto-mode-alist.
>
> Thomas
Add
(add-to-list 'auto-mode-alist '("\\.m4x*$" . m4-mode))
to your ~/.emacs if you want to match '.m4' and '.m4x' file suffixes.
Sebastian