   (progn
     (setq helm-gtags-auto-update t
           helm-gtags-use-input-at-cursor t
-          helm-gtags-ignore-case t))
-  :config
-  (progn
-    (defun me:update-all-tags ()
-      (interactive)
-      (let ((current-prefix-arg 4)) (call-interactively 'helm-gtags-update-tags)))
+          helm-gtags-ignore-case t)
     (add-hook 'dired-mode-hook 'helm-gtags-mode)
     (add-hook 'eshell-mode-hook 'helm-gtags-mode)
     (add-hook 'c-mode-hook 'helm-gtags-mode)
     (add-hook 'c++-mode-hook 'helm-gtags-mode)
     (add-hook 'asm-mode-hook 'helm-gtags-mode))
+  :config
+  (progn
+    (defun me:update-all-tags ()
+      (interactive)
+      (let ((current-prefix-arg 4)) (call-interactively 'helm-gtags-update-tags))))
   :bind
   (("<f6> <f6>" . helm-gtags-dwim)
    ("<f6> d"    . helm-gtags-find-tag)

   ("<f7> a" . magit-run-git-gui-blame)))

(use-package neotree
  :config
  (progn
    (when neo-persist-show
        (add-hook 'popwin:before-popup-hook
                  (lambda () (setq neo-persist-show nil)))
        (add-hook 'popwin:after-popup-hook
                  (lambda () (setq neo-persist-show t))))
    (add-hook 'neotree-mode-hook
              (lambda ()
                (define-key evil-normal-state-local-map (kbd "TAB") 'neotree-enter)
                (define-key evil-normal-state-local-map (kbd "SPC") 'neotree-enter)
                (define-key evil-normal-state-local-map (kbd "q") 'neotree-hide)
                (define-key evil-normal-state-local-map (kbd "RET") 'neotree-enter)))
    )
  :bind
  (("<f4> /" . neotree-toggle)
   ("<f7> /" . neotree-projectile-action)))

(use-package cc-mode
  :init
  (progn
    (add-hook 'c-mode-common-hook
              (lambda ()
                (setq c-basic-offset 3)))
    (add-hook 'c++-mode-hook
              (lambda ()
                (c-set-offset 'innamespace [0])))              ; no indentation in namespace
    (setq c-default-style "ellemtel"                           ; similar to allman style
          c-electric-pound-behavior (quote (alignleft))        ; cpp directives aligned to left
          show-paren-mode 0))

  :config
  :mode
  (("\\.c\\'"   . c-mode)
   ("\\.cpp\\'" . c++-mode)
