   (global-eclim-mode)
   (require 'company-emacs-eclim)
   (add-hook 'java-mode-hook
-            'company-emacs-eclim-local))
+            'company-emacs-eclim-local)
+  (custom-set-variables
+   '(eclim-eclipse-dirs '("~/localenv/opt/eclipse"))
+   '(eclim-executable "~/localenv/opt/eclipse/eclim")))
 
 ;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 ; 4. org mode

         neotree expand-region evil-iedit-state
	 multi-term multi-eshell yasnippet magit
	 company ;irony ;company-irony ; irony for clang support
	 ;auto-complete auto-complete-clang-async
	 ;virtualenvwrapper ;elpy auctex
	 markdown-mode htmlize


  ;; helm-find-files
  (global-set-key (kbd "C-x C-f") 'helm-find-files)

  (with-eval-after-load "helm"
    (define-key helm-map (kbd "<tab>") 'helm-execute-persistent-action) ; rebind tab to do persistent action
    (define-key helm-map (kbd "C-i") 'helm-execute-persistent-action) ; make TAB works in terminal
    (define-key helm-map (kbd "C-z")  'helm-select-action) ; list actions using C-z
    ))

;;; -----------------------------
;;; helm-projectile
(setq projectile-enable-caching t)
(when (package-installed-p 'helm-projectile)
  (projectile-global-mode)
  (helm-projectile-on)
  )

;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
; 21. tern-mode
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(defun setup-tern ()
  (add-hook 'js-mode-hook '(lambda () (tern-mode 1))))

(when (package-installed-p 'tern)
  (setup-tern))

;============================================================
; Filetype specified configuration
