   "indent whole buffer"
   (interactive)
   (indent-region (point-min) (point-max) nil))
-
-
 
 ;; Smart indent region.
 (defun smart-indent-region ()

;; Set up projectile.
(require 'projectile)
(global-set-key (kbd "<f6>") 'projectile-find-file)

(require 'diminish)
(diminish 'company-mode)
(diminish 'projectile-mode)

;; Features to make emacs more competitive with IDEs.
(require 'cc-mode)
(require 'dabbrev)
(require 'diminish)

;; Handle git commits nicely.
;; (require 'git-commit)

;; String utility functions.
(defun string/ends-with (string suffix)
  "Return t if STRING ends with SUFFIX."
  (and (string-match (rx-to-string `(: ,suffix eos) t)
                     string)
       t))

(defun string/starts-with (string prefix)
  "Return t if STRING starts with prefix."
  (and (string-match (rx-to-string `(: bos ,prefix) t)
                     string)
       t))

;; Smart completion.
(ido-mode t)
