utf-8-lang.el 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. ;;; utf-8-lang.el --- generic UTF-8 language environment -*- no-byte-compile: t -*-
  2. ;; Copyright (C) 2001-2012 Free Software Foundation, Inc.
  3. ;; Author: Dave Love <fx@gnu.org>
  4. ;; Keywords: i18n
  5. ;; This file is part of GNU Emacs.
  6. ;; GNU Emacs is free software: you can redistribute it and/or modify
  7. ;; it under the terms of the GNU General Public License as published by
  8. ;; the Free Software Foundation, either version 3 of the License, or
  9. ;; (at your option) any later version.
  10. ;; GNU Emacs is distributed in the hope that it will be useful,
  11. ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. ;; GNU General Public License for more details.
  14. ;; You should have received a copy of the GNU General Public License
  15. ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
  16. ;;; Commentary:
  17. ;;; Code:
  18. (set-language-info-alist
  19. "UTF-8" `((coding-system utf-8)
  20. (coding-priority utf-8)
  21. (charset unicode-bmp unicode)
  22. ;; Presumably not relevant now.
  23. ;; (setup-function
  24. ;; . (lambda ()
  25. ;; ;; Use Unicode font under Windows. Jason Rumney fecit.
  26. ;; (if (and (fboundp 'w32-add-charset-info)
  27. ;; (not (boundp 'w32-unicode-charset-defined)))
  28. ;; (w32-add-charset-info "iso10646-1" 'w32-charset-ansi t))))
  29. ;; Is this appropriate?
  30. ;; (exit-function
  31. ;; . (lambda ()
  32. ;; (if (and (fboundp 'w32-add-charset-info)
  33. ;; (not (boundp 'w32-unicode-charset-defined)))
  34. ;; (setq w32-charset-info-alist
  35. ;; (delete (assoc "iso10646-1")
  36. ;; w32-charset-info-alist)))))
  37. (input-method . "rfc1345") ; maybe not the best choice
  38. (documentation . "\
  39. This language environment is a generic one for the Unicode character set
  40. encoded in UTF-8."))
  41. nil)
  42. (provide 'utf-8-lang)
  43. ;;; utf-8-lang.el ends here