help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Always use UTF-8 mode with certain files


From: Peter Dyballa
Subject: Re: Always use UTF-8 mode with certain files
Date: Tue, 23 Apr 2013 21:02:28 +0200

Am 23.04.2013 um 14:25 schrieb Juha Nieminen:

> I would like for emacs to always use UTF-8 mode when opening certain files

You can open all files, except they have local variables set or similar 
settings to open in a different encoding, by setting in your environment LANG 
and LC_CTYPE to some UTF-8 value. In your init file you can set additionally:

        (prefer-coding-system 'utf-8)

For /some/ instead of all file types you could use statements à la:

        (add-to-list 'file-coding-system-alist '("\\.m\\'" . utf-8)) 

--
Greetings

  Pete

We have to expect it, otherwise we would be surprised.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]