 
 ;; Rename file and buffer.
 ;; From: https://sites.google.com/site/steveyegge2/my-dot-emacs-file
-(defun rename-file-and-buffer (new-name)
+(defun ar/rename-file-and-buffer (new-name)
   "Renames both current buffer and file it's visiting to NEW-NAME." (interactive "sNew name: ")
   (let ((name (buffer-name))
         (filename (buffer-file-name)))


(use-package rainbow-delimiters
  :ensure rainbow-delimiters)
(add-hook 'prog-mode-hook 'rainbow-delimiters-mode)

(use-package hungry-delete
  :ensure hungry-delete)

(require 'whitespace)
(setq whitespace-line-column 100)
(setq whitespace-style '(face lines-tail))

;; New browser tab.
(cond
 ((string-equal system-type "darwin") ; Mac OS X
    (defun ar/new-browser-tab ()
      "Open a new browser tab in the default browser."
      (interactive)
      (shell-command "open http://google.com"))
