all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Rusi <rustompmody@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 09:42:52 -0700 (PDT)	[thread overview]
Message-ID: <58c93fc2-07ca-43ed-9201-2bd37b6b967e@googlegroups.com> (raw)
In-Reply-To: <mailman.1345.1465662580.1216.help-gnu-emacs@gnu.org>

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


  parent reply	other threads:[~2016-06-11 16:42 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
     [not found]   ` <mailman.1345.1465662580.1216.help-gnu-emacs@gnu.org>
2016-06-11 16:42     ` Rusi [this message]
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=58c93fc2-07ca-43ed-9201-2bd37b6b967e@googlegroups.com \
    --to=rustompmody@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.