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

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

possible setup for emacs on RH9 to work with nordic chars åäö æøå


From: stig
Subject: possible setup for emacs on RH9 to work with nordic chars åäö æøå
Date: Tue, 22 Apr 2003 22:17:01 +0200
User-agent: KNode/0.7.2

for those of you that have some struggle getting emacs 21.2 on RH9 working
with nordic charachters like åäö (and possibly æø and others).

RH9 is using UTF-8 for fontencoding, perhaps you do not want to save your
files in UTF-8 mode. i do not want it for compabilityreasons.

here is how i set it up:

if you have rootaccess, edit the file
/usr/share/emacs/site-lisp/site-start.el

by default redhat put the following in:
--- start part of /usr/share/emacs/site-lisp/site-start.el on RH9 ---

; Enable utf-8 in locales using utf-8. In RHL, all of these end in ".UTF-8".
;; The utf-8 support in Emacs is limited, problems can be expected -
especially
;; outside latin-1
(cond ((equal (substring (concat "     " (or (getenv "LC_ALL")
                                             (getenv "LC_CTYPE")
                                             (getenv "LANG")))
                         -5)
              "UTF-8")
       (setq locale-coding-system 'utf-8)
       (set-terminal-coding-system 'utf-8)
       (set-keyboard-coding-system 'utf-8)
       (set-selection-coding-system 'utf-8)
       (prefer-coding-system 'utf-8)))

--- end part of /usr/share/emacs/site-lisp/site-start.el on RH9 ---



however changing to:
--- start part of /usr/share/emacs/site-lisp/site-start.el changed ---
;; Enable utf-8 in locales using utf-8. In RHL, all of these end in
".UTF-8".
;; The utf-8 support in Emacs is limited, problems can be expected -
especially
;; outside latin-1
;;(cond ((equal (substring (concat "     " (or (getenv "LC_ALL")
;;                                           (getenv "LC_CTYPE")
;;                                           (getenv "LANG")))
;;                       -5)
;;            "UTF-8")
;,       (setq locale-coding-system 'utf-8)
;;       (set-terminal-coding-system 'utf-8)
;;       (set-keyboard-coding-system 'utf-8)
;;       (set-selection-coding-system 'utf-8)
;;       (prefer-coding-system 'utf-8)))


       (setq locale-coding-system 'iso-latin-1)
       (set-terminal-coding-system 'iso-latin-1)
       (set-keyboard-coding-system 'utf-8)
       (set-selection-coding-system 'iso-latin-1)
       (prefer-coding-system 'iso-latin-1)

--- end part of /usr/share/emacs/site-lisp/site-start.el changed ---


the idea seems to be setting keybord-coding to utf-8 and the rest to
whatever you like (iso-latin-1 in my case).

if you do not have rootaccess but have problems it should work putting the
lines:
       (setq locale-coding-system 'iso-latin-1)
       (set-terminal-coding-system 'iso-latin-1)
       (set-keyboard-coding-system 'utf-8)
       (set-selection-coding-system 'iso-latin-1)
       (prefer-coding-system 'iso-latin-1)

in your ~/.emacs file.



other information:
running: redhat-config-keyboard i have swedish keyboard selected.


regards
stig


reply via email to

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