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

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

Re: How to enforce utf8 for all file without an override


From: Emanuel Berg
Subject: Re: How to enforce utf8 for all file without an override
Date: Sat, 11 Jun 2016 16:47:23 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

Tom Browder <address@hidden> writes:

> How can I make utf8 the default in my
> init.el file?

Emacs always did this automagically for me, but
this should force a certain encoding for read
and write operations. See the help for
`file-coding-system-alist' to understand how it
works. You might want to try with a test
".txtt" extention if it needs experimentation
to get right. It sure beats littering each file
with instructions how to align the editor!

(setq file-coding-system-alist
      (cons
       '("\\.txt\\'" . utf8)
       file-coding-system-alist) )

-- 
underground experts united .... http://user.it.uu.se/~embe8573
Emacs Gnus Blogomatic ......... http://user.it.uu.se/~embe8573/blogomatic
                   - so far: 48 Blogomatic articles -                   




reply via email to

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