 ;; MELPA and Mrmalade repos for packages.
 (require 'package)
 (add-to-list 'package-archives '("melpa-stable" . "http://stable.melpa.org/packages/") t)
-(add-to-list 'package-archives '("marmalade" . "http://marmalade-repo.org/packages/"))
+(add-to-list 'package-archives '("marmalade" . "http://marmalade-repo.org/packages/") t)
+(add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/") t)
 (package-initialize)
 
 ;; ido-vertical-mode package

    (load-file "/usr/local/lib/ciao/ciao-1.14/ciao-mode-init.el"))

;; CHECK LATER
;; (require 'js2-mode)
;; (require 'skewer-mode)
;; (add-to-list 'load-path "~/.emacs.d/elpa/ac-js2")
;; (require 'ac-js2)
;; (setq ac-js2-evaluate-calls t)
;; (add-hook 'js-mode-hook 'js2-minor-mode)
;; (add-hook 'js2-mode-hook 'ac-js2-mode)
;; (require 'smart-mode-line)
;; (setq sml/no-confirm-load-theme t)
;; (setq sml/theme 'dark)
;; (setq sml/no-confirm-load-theme t)
;; (sml/setup)
(custom-set-faces
 ;; custom-set-faces was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 )

(require 'undo-tree)
(global-undo-tree-mode t)

;; js2-mode package
(require 'js2-mode)
(add-to-list 'auto-mode-alist '("\\.js\\'" . js2-mode))

;; autocomplete for js2-mode package
(require 'ac-js2)
(setq ac-js2-evaluate-calls t)
(add-hook 'js2-mode-hook 'ac-js2-mode)

;; livedown package
(add-to-list 'load-path "~/.emacs.d/elpa/emacs-livedown")
(require 'livedown)
