# HG changeset patch # User Kenichi Handa # Date 1245286922 0 # Node ID 5fe572f454c711fec23959c2b60b0ec0371669a0 # Parent 35c3a2593d2b0a644845e1351bcf7c9c0a10fe9f (korean-key-bindings): Add binding for key Hangul. diff -r 35c3a2593d2b -r 5fe572f454c7 lisp/language/korea-util.el --- a/lisp/language/korea-util.el Thu Jun 18 01:00:28 2009 +0000 +++ b/lisp/language/korea-util.el Thu Jun 18 01:02:02 2009 +0000 @@ -97,9 +97,11 @@ ;; Information for setting and exiting Korean environment. (defvar korean-key-bindings `((global [?\S- ] toggle-korean-input-method nil) + (global [Hangul] toggle-korean-input-method nil) (global [C-f9] quail-hangul-switch-symbol-ksc nil) (global [f9] quail-hangul-switch-hanja nil) (,isearch-mode-map [?\S- ] isearch-toggle-korean-input-method nil) + (,isearch-mode-map [Hangul] isearch-toggle-korean-input-method nil) (,isearch-mode-map [C-f9] isearch-hangul-switch-symbol-ksc nil) (,isearch-mode-map [f9] isearch-hangul-switch-hanja nil))) @@ -118,7 +120,9 @@ (setq old-def (lookup-key (car this) key)) (define-key (car this) key new-def)) (setcar (nthcdr 3 this) old-def)) - (setq key-bindings (cdr key-bindings))))) + (setq key-bindings (cdr key-bindings)))) + (use-cjk-char-width-table 'ko_KR)) + (defun exit-korean-environment () "Exit Korean language environment." @@ -133,7 +137,8 @@ (global-set-key key old-def)) (if (eq (lookup-key (car this) key) new-def) (define-key (car this) key old-def)))) - (setq key-bindings (cdr key-bindings))))) + (setq key-bindings (cdr key-bindings)))) + (use-default-char-width-table)) ;; (provide 'korea-util)