utf-8-lang.el 1.9 KB
Newer Older
1
;;; utf-8-lang.el --- generic UTF-8 language environment -*- no-byte-compile: t -*-
Dave Love's avatar
Dave Love committed
2

Glenn Morris's avatar
Glenn Morris committed
3
;; Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
Glenn Morris's avatar
Glenn Morris committed
4
;;   Free Software Foundation, Inc.
Dave Love's avatar
Dave Love committed
5 6 7 8

;; Author: Dave Love <fx@gnu.org>
;; Keywords: i18n

Pavel Janík's avatar
Pavel Janík committed
9 10
;; This file is part of GNU Emacs.

Richard M. Stallman's avatar
Richard M. Stallman committed
11
;; GNU Emacs is free software; you can redistribute it and/or modify
Dave Love's avatar
Dave Love committed
12
;; it under the terms of the GNU General Public License as published by
13
;; the Free Software Foundation; either version 3, or (at your option)
Dave Love's avatar
Dave Love committed
14 15
;; any later version.

Richard M. Stallman's avatar
Richard M. Stallman committed
16
;; GNU Emacs is distributed in the hope that it will be useful,
Dave Love's avatar
Dave Love committed
17 18 19 20 21
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;; GNU General Public License for more details.

;; You should have received a copy of the GNU General Public License
Richard M. Stallman's avatar
Richard M. Stallman committed
22
;; along with GNU Emacs; see the file COPYING.  If not, write to the
Lute Kamstra's avatar
Lute Kamstra committed
23 24
;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
;; Boston, MA 02110-1301, USA.
Dave Love's avatar
Dave Love committed
25 26 27 28 29 30 31

;;; Commentary:

;;; Code:

(set-language-info-alist
 "UTF-8" `((coding-system mule-utf-8)
Dave Love's avatar
Dave Love committed
32
	   (coding-priority mule-utf-8)
Dave Love's avatar
Dave Love committed
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
	   (setup-function
	    . (lambda ()
		;; Use Unicode font under Windows.  Jason Rumney fecit.
		(if (and (fboundp 'w32-add-charset-info)
			 (not (boundp 'w32-unicode-charset-defined)))
		    (w32-add-charset-info "iso10646-1" 'w32-charset-ansi t))))
;; Is this appropriate?
;; 	   (exit-function
;; 	    . (lambda ()
;; 		(if (and (fboundp 'w32-add-charset-info)
;; 			 (not (boundp 'w32-unicode-charset-defined)))
;; 		    (setq w32-charset-info-alist
;; 			  (delete (assoc "iso10646-1")
;; 				  w32-charset-info-alist)))))
	   (input-method . "rfc1345")	; maybe not the best choice
	   (documentation . "\
This language environment is a generic one for a subset of the Unicode
character set encoded in UTF-8."))
 nil)

(provide 'utf-8-lang)
Miles Bader's avatar
Miles Bader committed
54 55

;;; arch-tag: dfa339e1-296f-4b1e-9fe8-2b65279ec813
Dave Love's avatar
Dave Love committed
56
;;; utf-8-lang.el ends here