     nlinum
     ;
     ;;;;; ido, ~M-x~
-    ;flx-ido
-    ;ido-ubiquitous
-    ;smex
-    ;idomenu
-    ;ido-vertical-mode
+    flx-ido
+    ido-ubiquitous
+    smex
+    idomenu
+    ido-vertical-mode
     ;
     ;;;;; Window and frame management
     ;buffer-move


;; loop over my-packages and install them
(defun install-my-packages ()
  (interactive)
  (mapc 'install-package my-packages))


      `((".*" . ,temporary-file-directory)))
(setq auto-save-file-name-transforms
      `((".*" ,temporary-file-directory t)))


;;;;;;; UI ;;;;;;;;
; from enberg on #emacs
(setq compilation-finish-function
  (lambda (buf str)
    (if (null (string-match ".*exited abnormally.*" str))
        ;;no errors, make the compilation window go away in a few seconds
        (progn
          (run-at-time
           "2 sec" nil 'delete-windows-on
           (get-buffer-create "*compilation*"))
          (message "No Compilation Errors!")))))


; push semicolon in the end of string
(defun maio/electric-semicolon ()
  (interactive)
  (end-of-line)
  (when (not (looking-back ";"))
    (insert ";")))
(define-key c-mode-map ";" 'maio/electric-semicolon)
(define-key c++-mode-map ";" 'maio/electric-semicolon)

; snippets
(add-to-list 'yas-snippet-dirs "~/.emacs.d/yasnippets/")
(yas-global-mode t)


;; configure irony mode ================================================
