         (find-file file))
     (message "Current buffer does not have an associated file.")))
 
-;;; neotree
-(global-set-key [f8] 'neotree-toggle)
-
-;;; autorevert stuff
+;;; Autorevert stuff
 (autoload 'auto-revert-mode "autorevert" 0 t)
 (autoload 'turn-on-auto-revert-mode "autorevert" 0 0)
 (autoload 'global-auto-revert-mode "autorevert" 0 t)

;;; code
;; packages:
;; (neotree, Fill-Column-Indicator, yasnippet, multiple-cursors
;; ido, term, jedi, w3m, virtualenv, slime, multiterm, solarized-theme,
;; )

;;; disable menu
(menu-bar-mode -1)

;;; time
(display-time-mode 1)
(setq display-time-24hr-format t)
(setq display-time-day-and-date t)
(setq display-time-interval 10)

;;; hightlight line.
(global-hl-line-mode 1)

;;; yasnippet, M-x yas-reload-all if you've started YASnippet already.
(yas-global-mode 1)
;;; keeping YASnippet defaults try out ~/Downloads/interesting-snippets
(setq yas-snippet-dirs (append yas-snippet-dirs
                               '("~/.emacs.d/snippets/django")
                               '("~/.emacs.d/yasnippet-snippets")))

;;; evil-mode for vim
(evil-mode 1)
(setq evil-default-state 'emacs)
(define-key evil-emacs-state-map (kbd "C-o") 'evil-execute-in-normal-state)

;;; start file as root.
(defun edit-current-file-as-root ()
  "Edit the file that is associated with the current buffer as root"
  (interactive)

    (if (not (bolp)) (forward-line 1))
    (delete-whitespace-rectangle (point) end 0)))

;;; W3m, list need update.
(add-to-list 'load-path "~/.emacs.d/elpa/w3m-20150426.1916")
(setq browse-url-browser-function 'w3m-browse-url)
(autoload 'w3m-browse-url "w3m" "Ask a WWW browser to show a URL." t)
