 ;; Perform the "C-g" action automatically when focus moves away from the minibuffer
 ;; This is to avoid the irritating occassions where repeated `C-g` pressing doesn't
 ;; edit the mini-buffer as cursor focus has moved out of it.
-;; Source: http://stackoverflow.com/questions/3022880/how-can-i-prevent-the-mini-buffer-from-displaying-previous-commands-in-emacs
+;; http://stackoverflow.com/a/3024055/1219634
 (defun stop-using-minibuffer ()
   "kill the minibuffer"
   (when (and (>= (recursion-depth) 1) (active-minibuffer-window))

                   name (file-name-nondirectory new-name)))))))

;; Display the file path of the file in current buffer and also copy it to the kill-ring
;; Source: http://camdez.com/blog/2013/11/14/emacs-show-buffer-file-name/
(defun show-copy-buffer-file-name (arg)
  "Show the full path to the current file in the minibuffer and also copy it.
Prefixed with one `universal argument', copy only the file name (not the full path).
Prefixed with two `universal argument's, copy the full path without env var replacement."
  (interactive "p")
  (let* ((file-name-full (buffer-file-name))
         file-name)

          (message file-name))
      (error "Buffer not visiting a file"))))

;; http://www.emacswiki.org/emacs-en/download/misc-cmds.el
(defun revert-buffer-no-confirm ()
  "Revert buffer without confirmation."
  (interactive)
