 ;; Features to make emacs more competitive with IDEs.
+(require 'cc-mode)
 (require 'dabbrev)
-(require 'cc-mode)
+(require 'diminish)
 
 ;; Handle git commits nicely.
-(require 'git-commit)
+;; (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)

  "indent whole buffer"
  (interactive)
  (indent-region (point-min) (point-max) nil))



;; Smart indent region.
(defun smart-indent-region ()

        (substring res 0 -1)
      ".")))

(defun save-all-files ()
  "Save all modified files."
  (interactive)
