(set-terminal-coding-system 'chinese-iso-8bit)
(set-keyboard-coding-system 'chinese-iso-8bit)
(set-language-environment 'chinese-gb)
(set-clipboard-coding-system 'chinese-iso-8bit)
(set-selection-coding-system 'chinese-iso-8bit)
(setq locale-coding-system 'chinese-iso-8bit)
(setq current-language-environment "Chinese-GB")
(custom-set-variables
'(global-font-lock-mode t nil (font-lock)))
;;禁用启动信息
(setq inhibit-startup-message t)
;;把title设置为“文件名@Andrew's Emacs"
(setq frame-title-format "%b@Andrew's Emacs")
;;显示列号
(setq column-number-mode t)
;;设置默认的列数是110
;;(setq default-fill-column 110)
;;设置kill-ring-max(我不知道怎么翻译这个词:)为200,以防不测:)
(setq kill-ring-max 200)
;;设置缺省模式是text,而不是基本模式
(setq default-major-mode 'text-mode)
;;设置tab为4个空格的宽度,而不是原来的2
(setq default-tab-width 4)
(add-hook 'text-mode-hook 'turn-on-auto-fill)
(global-font-lock-mode t)
;;下面的这个设置可以让光标指到某个括号的时候显示与它匹配的括号
(show-paren-mode t)
(setq show-paren-style 'parentheses)
;;把c语言风格设置为k&r风格
(add-hook 'c-mode-hook
'(lambda ()
(c-set-style "k&r")))
;;把c++语言风格设置为stroustrup style
(add-hook 'c++-mode-hook
'(lambda()
(c-set-style "stroustrup")))
(set-keyboard-coding-system 'chinese-iso-8bit)
(set-language-environment 'chinese-gb)
(set-clipboard-coding-system 'chinese-iso-8bit)
(set-selection-coding-system 'chinese-iso-8bit)
(setq locale-coding-system 'chinese-iso-8bit)
(setq current-language-environment "Chinese-GB")
(custom-set-variables
'(global-font-lock-mode t nil (font-lock)))
;;禁用启动信息
(setq inhibit-startup-message t)
;;把title设置为“文件名@Andrew's Emacs"
(setq frame-title-format "%b@Andrew's Emacs")
;;显示列号
(setq column-number-mode t)
;;设置默认的列数是110
;;(setq default-fill-column 110)
;;设置kill-ring-max(我不知道怎么翻译这个词:)为200,以防不测:)
(setq kill-ring-max 200)
;;设置缺省模式是text,而不是基本模式
(setq default-major-mode 'text-mode)
;;设置tab为4个空格的宽度,而不是原来的2
(setq default-tab-width 4)
(add-hook 'text-mode-hook 'turn-on-auto-fill)
(global-font-lock-mode t)
;;下面的这个设置可以让光标指到某个括号的时候显示与它匹配的括号
(show-paren-mode t)
(setq show-paren-style 'parentheses)
;;把c语言风格设置为k&r风格
(add-hook 'c-mode-hook
'(lambda ()
(c-set-style "k&r")))
;;把c++语言风格设置为stroustrup style
(add-hook 'c++-mode-hook
'(lambda()
(c-set-style "stroustrup")))