all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tom Browder <tom.browder@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: How to enforce utf8 for all file without an override
Date: Sat, 11 Jun 2016 11:28:56 -0500	[thread overview]
Message-ID: <CAFMGiz9cLKvp++v5EbaN3qggmPQjsYTKdKMC6EL9smu4c+XYxg@mail.gmail.com> (raw)
In-Reply-To: <86wplvok90.fsf@student.uu.se>

On Sat, Jun 11, 2016 at 9:47 AM, Emanuel Berg <embe8573@student.uu.se> wrote:
> Tom Browder <tom.browder@gmail.com> 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) )

Hm, maybe that's part of my problem.  When I use the help describe
function for "file-coding-system-alist" I get in the mini-buffer:

  Describe function: file-coding-system-alist [No match]

Maybe I'm missing some el files.  I'm using Emacs 24.4.1 (from a
Debian 8 package).

Thanks, Emanuel.

-Tom



  reply	other threads:[~2016-06-11 16:28 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-11 13:42 How to enforce utf8 for all file without an override Tom Browder
2016-06-11 14:47 ` Emanuel Berg
2016-06-11 16:28   ` Tom Browder [this message]
     [not found]   ` <mailman.1345.1465662580.1216.help-gnu-emacs@gnu.org>
2016-06-11 16:42     ` Rusi
2016-06-11 19:24       ` Eli Zaretskii
2016-06-11 16:00 ` Eli Zaretskii
2016-06-11 17:57   ` Tom Browder

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAFMGiz9cLKvp++v5EbaN3qggmPQjsYTKdKMC6EL9smu4c+XYxg@mail.gmail.com \
    --to=tom.browder@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.