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

 '(livedown:open t)
 '(livedown:port 1337)
 '(sh-indentation 2))
    ; port for livedown server

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; My personal configurations ;;

(global-visual-line-mode t)
(setq make-backup-file nil)
(setq-default indent-tabs-mode nil)
(setq-default tab-width 4)
(setq-default tab-always-indent nil)
;; Font configuration
(set-face-attribute 'default nil :font "Monaco")
