 ;; µǰbufferӦdiskһ
 (global-set-key (kbd "C-=") 'revert-buffer)
 
-
+(if (string-equal system-type "windows-nt")
+    (progn (global-unset-key (kbd "C-SPC"))
+           (global-set-key (kbd "M-SPC") 'set-mark-command)))
 
 (setq utf-translate-cjk-mode nil) ; disable CJK coding/encoding (Chinese/Japanese/Korean characters)
 (set-language-environment 'utf-8)


;; show extra whitespace
(setq show-trailing-whitespace t)

;; hide empty line fringe
(set-default 'indicate-empty-lines nil)

;; Set exec-path for Windows, OSX and Linux
(defun set-exec-path-from-shell-PATH ()
  (let ((path-from-shell (shell-command-to-string (concat "echo -n "
                                                          (if (string-equal system-type "windows-nt")
                                                              "%PATH%'"
                                                            "%PATH")))))
    (progn (setenv "PATH" path-from-shell)
           (setq exec-path (split-string path-from-shell path-separator)))))


;; I cann't execute 'echo %PATH%' command in shell-mode of emacs on windows.
;; If anybody can fix it, please tell me.
(if (and (display-graphic-p)
         (not (string-equal system-type "windows-nt")))
    (set-exec-path-from-shell-PATH))

(if (not (string-equal system-type "windows-nt"))
    (progn (setenv "PATH" (concat "/Library/TeX/texbin:/usr/local/bin:" (getenv "PATH")))
           (setq exec-path (append '("/Library/TeX/texbin" "/usr/local/bin") exec-path))))





