   :disabled
 
   :config
-  (progn
-    ;; the ac plugin will be activated in each buffer using irony-mode
-    (irony-enable 'ac)             ; hit C-RET to trigger completion
-
-    ;; avoid enabling irony-mode in other modes that inherit from c-mode,
-    ;; e.g: php-mode
-    (defun irony-mode-if-safe ()
-      (interactive)
-      (when (member major-mode irony-known-modes)
-	(irony-mode 1)))
-    (add-hook 'c++-mode-hook 'irony-mode-if-safe)
-    (add-hook 'c-mode-hook 'irony-mode-if-safe)
-
-    ;; Kill C-c keys
-    (define-key irony-mode-map (kbd "C-c") nil)
-
-    ))
+  ;; the ac plugin will be activated in each buffer using irony-mode
+  (irony-enable 'ac)             ; hit C-RET to trigger completion
+
+  ;; avoid enabling irony-mode in other modes that inherit from c-mode,
+  ;; e.g: php-mode
+  (defun irony-mode-if-safe ()
+    (interactive)
+    (when (member major-mode irony-known-modes)
+      (irony-mode 1)))
+  (add-hook 'c++-mode-hook 'irony-mode-if-safe)
+  (add-hook 'c-mode-hook 'irony-mode-if-safe)
+
+  ;; Kill C-c keys
+  (define-key irony-mode-map (kbd "C-c") nil)
+
+  )
 
 
 (defun external-shell-in-dir ()

(use-package projectile
  :ensure t
  :init
  (progn
    ;; Use C-\ p as prefix
    (set 'projectile-keymap-prefix (kbd "C-\\ p")))

  :config
  (progn
    ;; Kill C-c keys just in case
    (define-key projectile-mode-map (kbd "C-c") nil)

    ;; Use projectile to open files by default, if available.
    (defun maybe-projectile-find-file ()
      (interactive)
      (if (projectile-project-p)
	  (projectile-find-file)
	(call-interactively #'find-file)))
    (global-set-key (kbd "C-k") 'maybe-projectile-find-file)

    ;; Use everywhere
    (projectile-global-mode)

    (set 'projectile-use-git-grep t)

    (global-set-key (kbd "<f8>") #'projectile-grep)

    (set 'projectile-tags-command "ctags-exuberant -eR -f \"%s\" %s")
    ))




(use-package pos-tip :ensure t)
(use-package auto-complete
  :ensure t
  :config
  (require 'auto-complete-config)
  (require 'fuzzy)
  (require 'pos-tip)
  (add-to-list 'ac-dictionary-directories "~/.emacs.d/ac-dict")

  ;; Options from
  (ac-config-default)

  (global-auto-complete-mode t)
  (set 'ac-ignore-case nil)
  (set 'ac-use-fuzzy t)
  (set 'ac-fuzzy-enable t)
  (ac-flyspell-workaround)

  ;; Show quick help (function info display in tooltip)
  ;; (set 'ac-use-quick-help t)
  (set 'ac-delay 0.5) ;; show completions quickly

  ;; help is too annoying, press f1 to get it
  ;; ;; (set 'ac-show-menu-immediately-on-auto-complete 1)
  ;; (set 'ac-quick-help-delay my-ac-delay) ;; show help as soon as it shows
  ;;                                        ;; completions

  ;; let me search even while autocomplete is up!
  (define-key ac-complete-mode-map (kbd "C-s") nil)

  ;; Use f1 to show help in a buffer! Handy :) Don't even need to bind
  ;; anything!
  )


;; Undo tree
;;================================================================
(use-package undo-tree
  :ensure t
  :demand
  :bind (("C-z" . undo-tree-undo)
         ("C-S-z" . undo-tree-redo))
  :config
  (global-undo-tree-mode)

  ;; clean out the undo-tree keymap entry in the keymap list
  (let ((item (assoc 'undo-tree-mode minor-mode-map-alist)))
    (setf (cdr item) (make-sparse-keymap)))

  ;; For consistency make the keymap itself empty as well
  (setf undo-tree-map (make-sparse-keymap))

  )


