From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?windows-1252?Q?Maur=ED=ADcio?= Newsgroups: gmane.emacs.help Subject: Re: Using utf-8 and only utf-8 Date: Tue, 26 Aug 2008 22:48:29 -0300 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1219801756 3559 80.91.229.12 (27 Aug 2008 01:49:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 27 Aug 2008 01:49: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 Wed Aug 27 03:50:10 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KYAAj-00052p-V7 for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Aug 2008 03:50:10 +0200 Original-Received: from localhost ([127.0.0.1]:49402 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KYA9l-0005i0-M6 for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Aug 2008 21:49:09 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KYA9S-0005fp-FJ for help-gnu-emacs@gnu.org; Tue, 26 Aug 2008 21:48:50 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KYA9Q-0005eg-S0 for help-gnu-emacs@gnu.org; Tue, 26 Aug 2008 21:48:50 -0400 Original-Received: from [199.232.76.173] (port=48827 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KYA9Q-0005eb-Oy for help-gnu-emacs@gnu.org; Tue, 26 Aug 2008 21:48:48 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:55651 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KYA9Q-0001Hn-9q for help-gnu-emacs@gnu.org; Tue, 26 Aug 2008 21:48:48 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KYA9L-0002lV-Ly for help-gnu-emacs@gnu.org; Wed, 27 Aug 2008 01:48:43 +0000 Original-Received: from 189.7.82.68 ([189.7.82.68]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 27 Aug 2008 01:48:43 +0000 Original-Received: from briqueabraque by 189.7.82.68 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 27 Aug 2008 01:48:43 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 27 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 189.7.82.68 User-Agent: Thunderbird 2.0.0.16 (X11/20080724) In-Reply-To: X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:57015 Archived-At: Nikolaj Schumacher a écrit : > Maurí­cio wrote: > >> Is it possible to set something >> in .emacs so that emacs will >> always, no matter what, save any >> file in utf-8 (even those that >> were not utf-8 when they were >> open)? > > Yes, edit `file-coding-system-alist'. But I'd leave some of the > exceptions (e.g. ".elc") in there. > > > regards, > Nikolaj Schumacher > > > I just added this to my .emacs: (prefer-coding-system 'utf-8) (modify-coding-system-alist 'file ".*" 'utf-8) Is it the proper way of doing that? (Sorry, beginner question…)