 ;}
 ;(setq default-directory "/Users/oxnz/Developer/")
 
-;----------------backup------------------
-(setq
- backup-by-coping t ;don't clobber symlinks
- backup-directory-alist
- '(("." . "~/.emacs.d/saves")) ;don't litter my fs tree
- delete-old-versions t
- kept-new-versions 6
- kept-old-versions 2
- version-control t)
+;--------------------version check---------------
+(cond
+  ((> emacs-major-version 21)
+   (ido-mode t)
+   (setq ido-enable-prefix nil
+         ido-enable-flex-matching t
+         ido-create-new-buffer 'always
+         ido-use-filename-at-point t
+         ido-max-prospects 10))
+  ((>= emacs-major-version 23)
+   (electric-indent-mode t))
+)
+;-----------------set default---------------
+
+(setq-default
+  default-frame-alist
+  '(
+    (save-interprogram-paste-before-kill t)
+    (apropos-do-all t)
+    (recentf-mode 1)
+    (show-paren-mode 1)
+    (require 'saveplace)
+    (save-place t)
+    (save-palce-file (concat user-emacs-directory "places"))
+    (backup-directory-alist `(("." . , (concat user-emacs-directory
+                                               "backups"))))
+    (language-environment 'UTF-8)
+    (find-file-existing-other-name t) ;avoid problem with symbolic links
+;    (curosr-color . "white")
+;    (mouse-color . "white")
+;    (foreground-color . "white")
+;    (background-color . "DoggerBlue4")
+;    (cursor-type . bar)
+    (tool-bar-lines . 0)
+    (menu-bar-lines . 1)
+    (width . 80)
+;    (height . 58)
+    (font .
+	  "Courier New")
+    ))
 
 ;---------------auto-save----------------
 ; close auto save
-(setq auto-save-mode nil)
+;(setq auto-save-mode nil)
 ; don't generate #filename# temp file
-(setq auto-save-default nil)
+;(setq auto-save-default nil)
 
 ;----------------------commen---------------------
 ;打开就启用 text 模式

	(menu-bar-mode -1)
)
;------------------mode-line------------------
; show time{
;(display-time-mode t)
; 24-hour

; Author:	0xnz <yunxinyi AT gmail DOT com>
; Last-update:  2013-10-06 23:37
;
; Note:         This file is NOT part of GNU Emacs
; Description:  0xnz's dot emacs file, fixing weird quirks and poor defaults
; Use:          copy this file to ~/.emacs or ~/.emacs.d/init.el
;______________________________________________________________________________
;(evil-mode 1)
(setq viper-inhibit-startup-message 't)
(setq viper-expert-level '3)
;-------------save personal info------------
(setq user-full-name "oxnz")
(setq user-mail-address "yunxinyi@gmail.com")
;-----------------path config---------------
;Load_path{
(add-to-list 'load-path user-emacs-directory)
;}
;todo path{
(setq todo-file-do "~/.emacs.d/todo/do")
