all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Peter Dyballa <Peter_Dyballa@Web.DE>
To: avilella@gmail.com
Cc: help-gnu-emacs@gnu.org
Subject: Re: How to add the encoding in the emacs window?
Date: Sun, 2 Dec 2007 22:33:59 +0100	[thread overview]
Message-ID: <FFA5BAEE-F0F9-485A-B882-F70ED9DEF6A6@Web.DE> (raw)
In-Reply-To: <2cd210e4-ee59-4bb1-894e-372127f82711@f3g2000hsg.googlegroups.com>


Am 02.12.2007 um 10:45 schrieb avilella:

> I would like to know if it is possible to have the encoding specified
> in a given emacs window:

No. The encoding is a property of the buffer. It's shown at the  
beginning, the left-most edge, of the mode-line. You can select with  
the mouse cursor that symbol and a *Help* buffer will explain what  
the encoding is.

If you mean how to set an encoding preference for GNU Emacs, you  
might start with setting environment  variables like LC_CTYPE. From  
its value GNU Emacs will set an internal preference for buffer  
encodings – but it won't be strict since internal settings (like file- 
coding-system-alist, network-coding-system-alist, process-coding- 
system-alist, auto-coding-alist ...) pre-define a lot.

You can go further and put into your user init file code that reads  
LC_CTYPE (or a synthetic environment variable of your own) and then  
modifies such lists, and which also emits a

	(prefer-coding-system '<some value>)

There are also buffer local variables which can be added at the top  
of the file or its bottom. Examples for top:

	;;; -*- mode: Emacs-Lisp; coding: utf-8; -*-

and bottom:

	%%% Local Variables:
	%%% mode: latex
	%%% TeX-master: t
	%%% coding: utf-8-unix
	%%% TeX-command-default: "XeLaTeXx"
	%%% End:


--
Greetings

   Pete

We also sponsor National Invisible Chronic Illness Awareness Week  
annually in September.
Join the millions

  reply	other threads:[~2007-12-02 21:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-02  9:45 How to add the encoding in the emacs window? avilella
2007-12-02 21:33 ` Peter Dyballa [this message]
2007-12-02 23:27 ` Johan Bockgård
2007-12-03 11:56   ` Ke Lu

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=FFA5BAEE-F0F9-485A-B882-F70ED9DEF6A6@Web.DE \
    --to=peter_dyballa@web.de \
    --cc=avilella@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.