 (set-face-attribute 'linum nil :background "#333333")
 (set-face-attribute 'fringe nil :background "#333333")
 
-;; (package-install 'ido-vertical-mode)
+(use-package ido-vertical-mode
+  :ensure ido-vertical-mode)
 (ido-vertical-mode)
 
-;; (package-install 'markdown-mode+)
+(use-package markdown-mode+
+  :ensure markdown-mode+)
 (autoload 'markdown-mode "markdown-mode"
   "Major mode for editing Markdown files" t)
 (add-to-list 'auto-mode-alist '("\\.text\\'" . markdown-mode))

;; Mac OS
;; brew install --HEAD ctags
;; brew install global --with-exuberant-ctags
;; (package-install 'ggtags)
(require 'ggtags)
;; (package-install 'helm-gtags)
(require 'helm-gtags)
(helm-gtags-mode 1)
(global-set-key (kbd "M-.") 'helm-gtags-dwim)

;; (package-install 'projectile)
(require 'projectile)
(projectile-global-mode)

;; Best way (so far) to search for files in repo.
;; (package-install 'helm-projectile)
(require 'helm-projectile)
(global-set-key (kbd "C-x f") 'helm-projectile)

(require 'ediff)

(semantic-mode 1)

(global-set-key (kbd "C-c h o") 'helm-occur)
(define-key helm-map (kbd "<tab>") 'helm-execute-persistent-action) ; rebihnd 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
