 (set-keyboard-coding-system 'utf-8)
 (setq file-name-coding-system 'utf-8)
 
+;---------------------component toggle----------------
+;disable tool-bar-mode
+;disable scroll bar
+;start speedbar if we're using a window system
+(when window-system
+	(tool-bar-mode -1)
+	(scroll-bar-mode -1)
+	(speedbar t)
+)
 ;-----------------------------speed bar--------------------------------
-;(when window-system	; start speedbar if we're using a window system
-;  (speedbar t))
 
 ;--------------------frame-----------------------
 ;title{

 'default nil :font "Monaco 12")
;(set-default-font "Bitstream Vera Sans Mono-12")
;}
;Chinese font{
(dolist (charset '(kana han symbol cjk-misc bopomofo))
  (set-fontset-font (frame-parameter nil 'font)
		    charset

;}

;---------------------tool-bar-mode---------------

;------------------scroll-bar--------------------
;;滚动条在右侧
;(set-scroll-bar-mode 'right)
 ;滚动页面时比较舒服，不要整页的滚动
