|
From: | Matthias MEULIEN |
Subject: | Re: automating language environment settings |
Date: | 06 Sep 2002 16:39:32 +0200 |
User-agent: | Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 |
cgorac@yahoo.com (Crni Gorac) wrote: > (...) This is exactly what I have to avoid. I know about all of > above mentionned but I'd like not to have to type `C-x RET l' > sequence each time when I open Latin-2 encoded file in order to be > able to edit it. I'd like to have files let know emacs to change > language environment to Latin-2 each time when opened. The following does what you want ? (add-hook 'find-file-hooks '(lambda () (if (equal buffer-file-coding-system 'iso-latin-2) (set-language-environment "Latin-2")))) -- Matthias
[Prev in Thread] | Current Thread | [Next in Thread] |