From: cgorac@yahoo.com (Crni Gorac)
Subject: Re: automating language environment settings
Date: 8 Sep 2002 10:42:29 -0700 [thread overview]
Message-ID: <cb2002fc.0209080942.26404b29@posting.google.com> (raw)
In-Reply-To: yg7vg5jgp23.fsf@fermat.math.uvsq.fr
Matthias MEULIEN <meulien@club.lemonde.fr> wrote in message news:<yg7vg5jgp23.fsf@fermat.math.uvsq.fr>...
> cgorac@yahoo.com (Crni Gorac) wrote:
>
> > (...) This is exactly what I have to avoid. I know about all of
> > above mentionned but I'd like not to have to type `C-x RET l'
> > sequence each time when I open Latin-2 encoded file in order to be
> > able to edit it. I'd like to have files let know emacs to change
> > language environment to Latin-2 each time when opened.
>
> The following does what you want ?
>
> (add-hook 'find-file-hooks
> '(lambda ()
> (if (equal buffer-file-coding-system 'iso-latin-2)
> (set-language-environment "Latin-2"))))
That was exactly what I was looking for. Thank you very much.
prev parent reply other threads:[~2002-09-08 17:42 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-04 13:41 automating language environment settings Crni Gorac
2002-09-04 13:58 ` Peter Wu
2002-09-04 18:09 ` Crni Gorac
2002-09-04 18:43 ` Jesper Harder
2002-09-04 19:06 ` Matthias Meulien
2002-09-05 14:26 ` Crni Gorac
2002-09-06 14:39 ` Matthias MEULIEN
2002-09-08 17:42 ` Crni Gorac [this message]
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=cb2002fc.0209080942.26404b29@posting.google.com \
--to=cgorac@yahoo.com \
/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.