-;; Time-stamp: <2015-03-03 13:18:15 kmodi>
+;; Time-stamp: <2015-03-03 13:48:44 kmodi>
 
 ;; Functions to manipulate windows and buffers
 
-;; Source: http://www.emacswiki.org/emacs/WinnerMode
+;; http://www.emacswiki.org/emacs/WinnerMode
 (use-package winner
   :config
   (progn

             (set-window-start w2 s1)
             (setq i (1+ i)))))))

;; Source: http://www.whattheemacsd.com/
(defun delete-current-buffer-file ()
  "Deletes file connected to current buffer and kills buffer."
  (interactive)

 ("C-c s"       . rotate-windows)) ; rotate windows clockwise. This will do the act of swapping windows if the frame is split into only 2 windows

;; Bind a function to execute when middle clicking a buffer name in mode line
;; http://stackoverflow.com/a/26629984/1219634
(bind-key "<mode-line> <mouse-2>"   #'show-copy-buffer-file-name       mode-line-buffer-identification-keymap)
(bind-key "<mode-line> <S-mouse-2>" (λ (show-copy-buffer-file-name 4)) mode-line-buffer-identification-keymap)

(bind-key "<C-S-drag-mouse-1>" #'th/swap-window-buffers-by-dnd modi-mode-map)

;; Below bindings are made in global map and not in my minor mode as I want
;; other modes to override those bindings.
