[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to add the encoding in the emacs window?
From: |
Peter Dyballa |
Subject: |
Re: How to add the encoding in the emacs window? |
Date: |
Sun, 2 Dec 2007 22:33:59 +0100 |
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