 ;; display any item that contains the chars you typed
 (setq ido-enable-flex-matching t)
 
-(add-to-list 'custom-theme-load-path "~/.emacs.d/themes/") 
-(require 'color-theme-tomorrow
-   (locate-file "color-theme-tomorrow.el" custom-theme-load-path))
-
 (defalias 'list-buffers 'ibuffer) ; make ibuffer default
 
 (require 'helm-config)

  (package-initialize))

(add-to-list 'load-path "~/elisp")
(require 'php-mode)
(require 'go-mode-autoloads)

(add-hook 'after-init-hook #'global-flycheck-mode)

(add-hook 'js2-mode-hook 'ac-js2-mode)
(setq ac-js2-evaluate-calls t)

(add-to-list 'auto-mode-alist (cons (rx ".js" eos) 'js2-mode))

(desktop-save-mode 1)


(defun scroll-up-line-3 ()
  "Upcase the last letter of the word at point."
  (interactive)
  (scroll-up-line)
  (scroll-up-line))

(defun scroll-down-line-3 ()
  "Upcase the last letter of the word at point."
  (interactive)
  (scroll-down-line)
  (scroll-down-line))

(defun move-to-next-line ()
	"Move to next line."
	(interactive)
	(move-end-of-line 1)
	(open-line 1)
	(forward-line)
	(indent-for-tab-command))

(defun move-to-prev-line ()
	"Move to next line."
	(interactive)
	(move-beginning-of-line 1)
	(open-line 1)
	(indent-for-tab-command))

;(add-to-list 'load-path "~/elisp/neotree")
;(require 'neotree)
;(global-set-key [f8] 'neotree-toggle)

(global-set-key (kbd "M-o n") 'move-to-next-line)
(global-set-key (kbd "M-o p") 'move-to-prev-line)
(global-set-key (kbd "M-p") 'scroll-down-line-3)
(global-set-key (kbd "M-n") 'scroll-up-line-3)
(global-set-key (kbd "M-3") 'delete-other-windows) ; expand current pane
(global-set-key (kbd "M-4") 'split-window-below) ; split pane top/bottom
(global-set-key (kbd "M-2") 'delete-window) ; close current pane
(global-set-key (kbd "M-s") 'other-window) ; cursor to other pane
(global-set-key [(meta ?z)] 'delete-backward-char)

(global-hl-line-mode 1)
(set-face-background 'hl-line "#3e4446")
(set-face-foreground 'highlight nil)
