           deft-default-extension "md"
           deft-extensions '("md" "txt" "text" "markdown" "mmd" "org")
                                         ; deft auto-save interferes with whitespace-butler, so disable
-          deft-auto-save-interval 0))
-
-
-  :config
-  (progn
+          deft-auto-save-interval 0)
     (add-hook 'deft-mode-hook
               (lambda ()
                 (define-key deft-mode-map (kbd "<f4> n") 'quit-window)

  (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)))
    (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))
  :bind
  (("<f6> <f6>" . helm-gtags-dwim)
   ("<f6> d"    . helm-gtags-find-tag)

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