help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: entring 8 bit characters


From: Ehud Karni
Subject: Re: entring 8 bit characters
Date: Sun, 19 Jan 2003 22:48:24 +0200

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sun, 19 Jan 2003 22:13:33 +0200, Hary <hari_i@yahoo.com> wrote:
>
> Eli Zaretskii <eliz@is.elta.co.il> wrote in message
> >
> > That should have been "C-x RET k hebrew-iso-8bit RET".
>
> Thank you, it worked.
> Now, how do I save it so it will be the default?

This code (in .emacs) does it for me (Yes, I realy use Hebrew):

    ;; First - drop the default file-coding-system(s)
    (let ((defcs (assoc "" file-coding-system-alist)))
        (while defcs
            (setq file-coding-system-alist (delq defcs 
file-coding-system-alist))
            (setq defcs (assoc "" file-coding-system-alist))))

    ;; Second - set desired default
    (add-to-list 'file-coding-system-alist '("" hebrew-iso-8bit) t)
    (set-language-environment 'Hebrew)  ;; Hebrew (UNIX eol style)
    (set-language-environment-coding-systems 'Hebrew 'unix)

Ehud.


- --
 @@@@@@ @@@ @@@@@@ @    @   Ehud Karni                       ינרק דוהא
     @    @      @  @@  @   Senior System Support   בשחמ תוכרעמב הכימת
     @    @ @    @ @  @@    Mivtach - Simon               ןומיס - חטבמ
     @    @ @    @ @    @   Insurance agencies          חוטבל תויונכוס
  Better Safe Than Sorry    Tel: +972-3-7966-561  Fax: +972-3-7966-667
   http://www.mvs.co.il             mailto:ehud@unix.mvs.co.il
-----BEGIN PGP SIGNATURE-----
Comment: use http://www.keyserver.net/ to get my key (and others)

iD8DBQE+Kw8XLFvTvpjqOY0RAtsUAKCENPs12zILsUaPjFiHnjRU1ZpbVgCfeucV
7gLQhsXi+gKRIWfciOgxt08=
=lvek
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]