   :init
   (smex-initialize))
 
-;
-; Buffers
-;
-
-(use-package uniquify
-  :config
-  (progn
-    (setq uniquify-strip-comon-prefix t)
-    (setq uniquify-buffer-name-style 'forward)))
-
-;
-; Projects
-;
+;;;
+;;; Projects
+;;;
 
 (use-package projectile
   :ensure

; show column numbers too
(column-number-mode 1)

; save and restore previous sessions
(use-package desktop
  :config
  (add-to-list 'desktop-modes-not-to-save 'magit-mode)
  :init
  (desktop-save-mode 1))

; backups
(setq backup-directory-alist '((".*" . "~/.saves"))
      backup-by-copying t)


(use-package autopair
  :ensure
  :diminish autopair
  :idle
  (autopair-global-mode))

; battery status
(use-package fancy-battery
  :ensure
  :idle
  (fancy-battery-mode))

;
; Navigation
;

(use-package ido
  :ensure

  (setq company-idle-delay 0)
  (add-hook 'after-init-hook 'global-company-mode))

(use-package yasnippet
  :ensure
  :config
  (global-set-key (kbd "M-/") 'company-yasnippet)
  :init
  (progn
    (add-to-list 'yas-snippet-dirs "~/.emacs.d/snippets/")
    (yas-global-mode)))

(use-package gist
  :ensure
  :defer t
  :config
  (setq gist-view-gist 1))

(use-package rainbow-mode
  :ensure
  :init
  (rainbow-mode))

;;;
;;; Text Editing Modes
;;;

(add-hook 'text-mode-hook 'turn-on-auto-fill)
(add-hook 'text-mode-hook 'turn-on-flyspell)

