-; -*-mode: Emacs-Lisp-*-
-;==============================================================================
-; Filename: init.el
-;
-; Copying:	Copyright (C) 2013 0xnz, All rights reserved.
-; Version:	0.2
-; 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
-;______________________________________________________________________________
-;-------------save personal info------------
-(setq user-full-name "oxnz")
-(setq user-mail-address "yunxinyi@gmail.com")
-;-----------------path config---------------
-;Load_path{
+;; -*-mode: Emacs-Lisp-*-
+;;=============================================================================
+;; Filename: init.el
+;;
+;; Copying:	Copyright (C) 2012, 2013 Oxnz, All rights reserved.
+;; Version:	0.2
+;; Author:	0xnz <yunxinyi AT gmail DOT com>
+;; Last-updated: 2013-10-20 13:50:42 CST
+;;
+;; 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
+;;_____________________________________________________________________________
+;; ------------Load_path------------
 (add-to-list 'load-path user-emacs-directory)
-;}
-;todo path{
-(setq todo-file-do "~/.emacs.d/todo/do")
-(setq todo-file-done "~/.emacs.d/todo/done")
-(setq todo-file-top "~/.emacs.d/todo/top")
-;}
-;(setq default-directory "/Users/oxnz/Developer/")
 
 ;--------------------version check---------------
 (cond

(global-set-key [?\A-n] 'new-frame)
;---------------------------mode----------------------------------------
; uncomment the following line to override the default scratch messsage
(setq initial-scratch-message (concat
";                  /)\n"
";                 //\n"
";   .------------| |---------------------------------------------.__\n"
";   |   OXNZ     | |>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>:>\n"
";   `------------| |----------------------------------------------'^^\n"
";                 \\\\\n"
";                  \\)\n"
	)
)

;-----------------shell mode---------------
;(autoload 'ansi-color-for-comint-mode-on "ansi-color" nil t)
;(add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on t)

;--------------sh-mode-------------
(setq
 sh-indent-for-then 0
 sh-indent-for-do 0
 sh-indent-for-after-do '+
 sh-indent-for-case-label '*
 sh-indent-for-case-alt '+
 sh-indent-comment t)
;-------------------compile mode------------------
(add-hook 'java-mode-hook
          (lambda(); javac or ant
            (set (make-local-variable 'compile-command) (concat "javac " (buffer-name)))))
; safe locals
; we mark these as 'safe', so emacs22+ won't give us annoying warnings
(setq safe-local-variable-values
      (quote ((auto-recompile . t)
              (folding-mode . t)
              (outline-minor-mode . t)
              (sh-indent-comment . t)
              auto-recompile outline-minor-mode sh-indent-comment
              )
             )
      )

;(setq viper-expert-level '3)
;-----------------set default---------------
(require 'saveplace)
(setq-default
 save-place t
 save-place-file "~/.emacs.d/places"
  default-frame-alist
  '(
    (save-interprogram-paste-before-kill t)
    (apropos-do-all t)
    (recentf-mode 1)
    (recentf-max-menu-items 10)
    (recentf-max-saved-items 10)
    (show-paren-mode 1)
    (language-environment 'utf-8)
    (find-file-existing-other-name t) ;avoid problem with symbolic links
;    (curosr-color . "white")
;    (mouse-color . "white")
