From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Browder Newsgroups: gmane.emacs.help Subject: Re: How to enforce utf8 for all file without an override Date: Sat, 11 Jun 2016 11:28:56 -0500 Message-ID: References: <86wplvok90.fsf@student.uu.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1465662621 14001 80.91.229.3 (11 Jun 2016 16:30:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 11 Jun 2016 16:30:21 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jun 11 18:30:15 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bBlna-0004iV-43 for geh-help-gnu-emacs@m.gmane.org; Sat, 11 Jun 2016 18:30:14 +0200 Original-Received: from localhost ([::1]:47752 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBlnZ-0003TF-5e for geh-help-gnu-emacs@m.gmane.org; Sat, 11 Jun 2016 12:30:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44528) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBln0-0003TA-9N for help-gnu-emacs@gnu.org; Sat, 11 Jun 2016 12:29:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bBlmy-0004qX-Tc for help-gnu-emacs@gnu.org; Sat, 11 Jun 2016 12:29:38 -0400 Original-Received: from mail-oi0-x22c.google.com ([2607:f8b0:4003:c06::22c]:33344) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBlmy-0004qT-Ov for help-gnu-emacs@gnu.org; Sat, 11 Jun 2016 12:29:36 -0400 Original-Received: by mail-oi0-x22c.google.com with SMTP id u201so27226419oie.0 for ; Sat, 11 Jun 2016 09:29:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=VEdDbpJV87V/Z7xC9HwEj2eF4NkRA0VBRc2IvUWxI/k=; b=o5Rm4xyRmqpXXYOu4f1fC+7D9rIvlzvx5PUUkUmHW8fg6kC3CsEIRipGRRFMDnieUB 1qAoayqrxZ81kw1vp823Vu/MmKQy98oYG7q5q01qUfZtSNIkUW5unBF9jIE7Yjr/V3s8 8WtvVu5pVkYCJnute97VjG1kCu1G/7eKO8D1+ZASwyNmbrDNQmQI5B/eu/bzleDZ9uDq 4JEqzCg5Kd9AVWogd28TmQsEK3k/QErP44fXlkprkDQSzgZaafW70pWwomgbMi8cZOIt fQsJJsugkjugo5psiaryHE39u6y/IiUn8WG+p1Tno2AJJ++apgzm9c1e64Pqz4n2pWfe Y8tQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=VEdDbpJV87V/Z7xC9HwEj2eF4NkRA0VBRc2IvUWxI/k=; b=QdZFmkikCktgehpVCngzPY4+FGxvHrQCOb/Dy2jX8Mpc6mI7plerI2DM8SikLiKpUg Xlsg3w+99C9+L1qcuZ3kjm/wKAMoe+hTjkbGOs5wth7yUgAFdkopdNpQQZfWoU8MP+0u G/PWy5Uw0B/2GwLTksfKTZpNLtgt/O3W0ET/vfzqpEzjyLP+MaMEHpIDhQAlRF1vT82p GGrOlCShvZfynf7l5jKA9HDNz/HnX+C0yYINNjMK/ytPH/cgRLLtSUC7TST4fsnvHNMt BQcnDU6yiPrYqJC6J7nxHaQXXvqGy71lvIt/RJ9duUQWMLqtUOIsc3DhxpK81jPt7Lhj GPSw== X-Gm-Message-State: ALyK8tJEj398hgcl/QOB996Uq+xnmFlRZ3q62mmkX/vTV6e3vT8u3a0A538vC/xvy5F5Ledbx7n/aftwDkMLEw== X-Received: by 10.157.44.145 with SMTP id p17mr3579475otb.184.1465662576023; Sat, 11 Jun 2016 09:29:36 -0700 (PDT) Original-Received: by 10.157.33.29 with HTTP; Sat, 11 Jun 2016 09:28:56 -0700 (PDT) In-Reply-To: <86wplvok90.fsf@student.uu.se> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4003:c06::22c X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:110418 Archived-At: On Sat, Jun 11, 2016 at 9:47 AM, Emanuel Berg wrote: > Tom Browder 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