 (setenv "PATH" (concat "~/zion/racket/racket/bin:" (getenv "PATH")))
 (setenv "PATH" (concat "/Library/Tex/texbin:" (getenv "PATH")))
 (setq exec-path (split-string (getenv "PATH") ":"))
-
-;;; ** ELPA
-
-(setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/")
-			 ;; ("marmalade" . "http://marmalade-repo.org/packages/")
-			 ("melpa" . "http://melpa.org/packages/")
-			 ("org" . "http://orgmode.org/elpa/")))
 
 ;;; ** evil-leader
 ;; should set before enable evil-mode

;; desktop
(desktop-save-mode t)

;;; * Packages

(package-initialize)


;;; ** auctex
;;set xetex mode in tex/latex
(use-package auctex
  :ensure t
  :mode ("\\.tex\\'" . latex-mode)
  :commands (latex-mode LaTex-mode plain-tex-mode)
  :init
  (add-hook 'LaTeX-mode-hook
	    (lambda()
	      (add-to-list 'TeX-command-list '("XeLaTeX" "%`xelatex%(mode)%' %t" TeX-run-TeX nil t))
	      (setq TeX-command-default "XeLaTeX")
	      (setq TeX-save-query nil)
	      (setq TeX-show-compilation t)))
  (add-hook 'LaTeX-mode-hook #'turn-on-reftex)
  (setq TeX-auto-save t
	TeX-PDF-mode t
	LaTeX-item-indent 0
	TeX-newline-function 'newline-and-indent)
  (setq-default TeX-master nil))

;;; ** perl

