 ;;F11:粘贴寄存器内容
 ;(global-set-key [f11] 'insert-register)
 ;}
-
-
 ;;撤消
 ;(global-set-key (kbd "C-z") 'undo)
 ;;;全选
 ;;(global-set-key (kbd "C-a") 'mark-whole-buffer)
 ;;;保存
 ;(global-set-key (kbd "C-s") 'save-buffer)
-;
 ;;;跳转到某行
 ;(global-set-key [(meta g)] 'goto-line)
-;;;Tab补全或缩进
-;;(global-set-key [(tab)] 'my-indent-or-complete)
-;
-;;------------------------programming related----------------------
-;;;打开代码折叠功能
-;(add-hook 'c-mode-hook' 'hs-minor-mode)
-;(add-hook 'c++-mode-hook 'hs-minor-mode)
-;
-;;(c-set-style "K&R")
-;
-;;;在模式栏中显示当前光标所在函数
-;(which-function-mode)
-;;;自动缩进的宽度设置为4
-;(setq c-basic-offset 4)
-;
-;;;预处理设置
-;(setq c-macro-shrink-window-flag t)
-;(setq c-macro-preprocessor "cpp")
-;(setq c-macro-cppflags " ")
-;(setq c-macro-prompt-flag t)
-;(setq hs-minor-mode t)
-;(setq abbrev-mode t)
-;
-;;auto-complete
-;(add-to-list 'load-path "~/.emacs.d/plugins/auto-complete")
-;(require 'auto-complete-config)
-;(add-to-list 'ac-dictionary-directories "~/.emacs.d/plugins/auto-complete/ac-dict")
-;(ac-config-default)
-
-;;-----------------------cc mode---------------------
-;(require 'cc-mode)
-;(c-set-offset 'inline-open 0)
-;(c-set-offset 'friend '-)
-;(c-set-offset 'substatement-open 0)
-
-
-;; auto format Ctrl-Alt-\
-;(dolist (command '(yank yank-pop))
-;  (eval
-;   `(defadvice ,command (after indent-region activate)
-;      (and (not current-prefix-arg)
-;           (member major-mode
-;                   '(emacs-list-mode
-;                     list-mode
-;                     clojure-mode
-;                     scheme-mode
-;                     haskell-mode
-;                     ruby-mode
-;                     rspec-mode
-;                     python-mode
-;                     c-mode
-;                     c++-mode
-;                     objc-mode
-;                     latex-mode
-;                     js-mode
-;                     plain-TeX-mode))
-;           (let ((mark-even-if-inactive transient-mark-mode))
-;             (indent-region (region-beginning) (region-end) nil))))))
-                     

(set-keyboard-coding-system 'utf-8)
(setq file-name-coding-system 'utf-8)

;--------------------frame-----------------------
;title{
;在标题栏显示buffer的名字(默认不显示)
(setq frame-title-format "%b@emacs")
;}

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

(setq display-time-use-mail-icon t)
(setq display-time-interval 10)
;}
;在模式栏中显示当前光标所在函数
;(which-function-mode)

;-----------------echo-area-----------------

