all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* possible setup for emacs on RH9 to work with nordic chars åäö æøå
@ 2003-04-22 20:17 stig
  0 siblings, 0 replies; only message in thread
From: stig @ 2003-04-22 20:17 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-04-22 20:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-22 20:17 possible setup for emacs on RH9 to work with nordic chars åäö æøå stig

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.