"Setup multilingual environment (MULE) for Japanese."
(interactive)
(setup-english-environment)
+
(setq coding-category-iso-8-2 'japanese-iso-8bit)
(set-coding-priority
coding-category-iso-8-else
coding-category-emacs-mule))
- (if (eq system-type 'ms-dos)
- (progn
- (setq-default buffer-file-coding-system 'japanese-shift-jis)
- (set-terminal-coding-system-internal 'japanese-shift-jis)
- (set-keyboard-coding-system-internal 'japanese-shift-jis)
- (setq default-process-coding-system
- '(japanese-shift-jis-dos . japanese-shift-jis-dos)))
- (setq-default buffer-file-coding-system 'iso-2022-7bit)
- (set-terminal-coding-system-internal 'iso-2022-7bit)
- (set-keyboard-coding-system-internal 'iso-2022-7bit))
+ (set-default-coding-systems
+ (if (eq system-type 'ms-dos)
+ 'japanese-shift-jis
+ 'iso-2022-7bit))
(setq default-input-method "japanese")
(setq-default default-input-method "japanese")