(global-set-key [?\S- ] 'toggle-input-method)
(global-set-key [f5] 'insert-date)
;; not necessary for 23-2 emacs
;;(global-set-key (kbd "C-x <left>") 'previous-buffer)
;;(global-set-key (kbd "C-x <right>") 'next-buffer)
;; for emacs 23 or later
(when window-system
(set-face-font 'default "-outline-Droid Sans Mono-normal-normal-normal-mono-12-*-*-*-c-*-iso10646-1")
(set-fontset-font "fontset-default" '(#x1100 . #xffdc) '("malgun gothic" . "unicode-bmp")) ;; 유니코드 한글영역
;(set-fontset-font "fontset-default" 'kana '("ms mincho" . "unicode-bmp"))
(set-fontset-font "fontset-default" 'han '("ms mincho" . "unicode-bmp"))
;(set-fontset-font "fontset-default" 'cjk-misc '("ms mincho" . "unicode-bmp"))
(set-fontset-font "fontset-default" '(#xe0bc . #xf66e) '("new gulim" . "unicode-bmp")) ;; 유니코드 사용자 영역
)
(defadvice switch-to-buffer (after activate-input-method activate)
(activate-input-method "korean-hangul"))