 ; Author:	0xnz <yunxinyi AT gmail DOT com>
 ; Last-update:  2013-10-06 23:37
 ;
-; Description:  0xnz's dot emacs file
-; Howto:	copy this file to ~/.emacs or ~/.emacs.d/init.el
+; 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' "~/.emacs.d")
+(add-to-list 'load-path user-emacs-directory)
 ;}
 ;todo path{
 (setq todo-file-do "~/.emacs.d/todo/do")

;}
;(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)

;---------------auto-save----------------
; close auto save
(setq auto-save-mode nil)
; don't generate #filename# temp file
(setq auto-save-default nil)

;----------------------commen---------------------
;打开就启用 text 模式

;(setq hs-minor-mode t)
;(setq abbrev-mode t)
;------------------indent------------------
(setq-default indent-tabs-mode nil)
(set-default 'indent-empty-lines t)
(set-default 'imenu-auto-rescan t)
(add-hook 'text-mode-hook 'turn-on-auto-fill)
;(setq tab-width 4 c-basic-offset 4)
;;-----------------------cc mode---------------------
;(setq-default c-basic-offset 4
;			  tab-width 4
