From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rusi Newsgroups: gmane.emacs.help Subject: Re: How to enforce utf8 for all file without an override Date: Sat, 11 Jun 2016 09:42:52 -0700 (PDT) Message-ID: <58c93fc2-07ca-43ed-9201-2bd37b6b967e@googlegroups.com> 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 1465663576 27182 80.91.229.3 (11 Jun 2016 16:46:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 11 Jun 2016 16:46:16 +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:46:16 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 1bBm2f-0000tu-LX for geh-help-gnu-emacs@m.gmane.org; Sat, 11 Jun 2016 18:45:49 +0200 Original-Received: from localhost ([::1]:47788 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBm2Z-0007Za-Vn for geh-help-gnu-emacs@m.gmane.org; Sat, 11 Jun 2016 12:45:44 -0400 X-Received: by 10.176.0.52 with SMTP id 49mr5745876uai.14.1465663373330; Sat, 11 Jun 2016 09:42:53 -0700 (PDT) X-Received: by 10.36.196.5 with SMTP id v5mr130356itf.4.1465663373233; Sat, 11 Jun 2016 09:42:53 -0700 (PDT) Original-Path: usenet.stanford.edu!v48no591439qgd.0!news-out.google.com!v8ni134qgv.0!nntp.google.com!p34no5521403qgp.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=123.201.113.62; posting-account=mBpa7woAAAAGLEWUUKpmbxm-Quu5D8ui Original-NNTP-Posting-Host: 123.201.113.62 User-Agent: G2/1.0 Injection-Date: Sat, 11 Jun 2016 16:42:53 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:218110 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:110419 Archived-At: On Saturday, June 11, 2016 at 9:59:42 PM UTC+5:30, Tom Browder wrote: > 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). Its a variable not a function -- ie see it with C-h v not C-h f And the details that Eli is asking for should include: OS If *nix then env value of $LANG, etc