emacs中文输入的解决

解决的还不是很完善,secureCRT下解决了,但是putty不行,

传输都设置成utf-8

在~/.emacs中输入:

 

(set-language-environment 'Chinese-GB)
(set-keyboard-coding-system 'euc-cn)
(set-clipboard-coding-system 'euc-cn)
(set-terminal-coding-system 'euc-cn)
(set-buffer-file-coding-system 'euc-cn)
(set-selection-coding-system 'euc-cn)
(modify-coding-system-alist 'process "*" 'euc-cn)
(setq default-process-coding-system '(euc-cn . euc-cn))
(setq-default pathname-coding-system 'euc-cn)
(set-default-font "-outline-PBKNLe-normal-r-normal-normal-12-*-96-96-c-*-gb2312")

 

你可能感兴趣的:(工具)