70
|
1 ;;; greek-hooks.el --- pre-loaded support for Greek.
|
|
2
|
|
3 ;; Copyright (C) 1992,93,94,95 Free Software Foundation, Inc.
|
|
4 ;; Copyright (C) 1995 Amdahl Corporation.
|
|
5 ;; Copyright (C) 1995 Sun Microsystems.
|
|
6
|
|
7 ;; This file is part of XEmacs.
|
|
8
|
|
9 ;; XEmacs is free software; you can redistribute it and/or modify it
|
|
10 ;; under the terms of the GNU General Public License as published by
|
|
11 ;; the Free Software Foundation; either version 2, or (at your option)
|
|
12 ;; any later version.
|
|
13
|
|
14 ;; XEmacs is distributed in the hope that it will be useful, but
|
|
15 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
16 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
17 ;; General Public License for more details.
|
|
18
|
|
19 ;; You should have received a copy of the GNU General Public License
|
|
20 ;; along with XEmacs; see the file COPYING. If not, write to the
|
|
21 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
22 ;; Boston, MA 02111-1307, USA.
|
|
23
|
|
24 ;;; Synched up with: Mule 2.3.
|
|
25
|
|
26 ;; For syntax of Greek
|
74
|
27 (loop for c from 54 to 126
|
|
28 do (modify-syntax-entry (make-char 'greek-iso8859-7 c) "w"))
|
|
29 (modify-syntax-entry (make-char 'greek-iso8859-7 32) "w") ; no-break space
|
138
|
30 (modify-syntax-entry ?-F· ".")-A
|
|
31 (modify-syntax-entry ?-F» ".")-A
|
|
32 (modify-syntax-entry ?-F½ ".")-A
|
70
|
33
|
|
34
|
|
35 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
36 ;;; GREEK
|
|
37 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
38
|
|
39 (make-coding-system
|
|
40 'iso-8859-7 'iso2022 "MIME ISO-8859-7"
|
|
41 '(charset-g0 ascii
|
74
|
42 charset-g1 greek-iso8859-7
|
70
|
43 charset-g2 t
|
|
44 charset-g3 t
|
|
45 mnemonic "MIME/Grk"
|
|
46 ))
|
|
47
|
138
|
48 (add-hook 'quail-package-alist '("greek" "quail-greek"))
|
70
|
49
|
|
50 (define-language-environment 'greek
|
|
51 "Greek"
|
|
52 (lambda ()
|
|
53 (set-coding-category-system 'iso-8-designate 'iso-8859-7)
|
|
54 (set-coding-priority-list '(iso-8-designate iso-8-1))
|
110
|
55 (set-default-buffer-file-coding-system 'iso-8859-7)
|
70
|
56 (setq terminal-coding-system 'iso-8859-7)
|
|
57 (setq keyboard-coding-system 'iso-8859-7)
|
138
|
58 (setq-default quail-current-package
|
|
59 (assoc "greek" quail-package-alist))
|
74
|
60 ))
|