   ("C-c )"        . modi/kill-buffer-dwim) ; alternative to C-) for terminal mode
   ("C-c 0"        . modi/kill-buffer-dwim)) ; alternative to C-) for terminal mode
 
-;; 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>" (lambda ()
-                                      (interactive)
-                                      (show-copy-buffer-file-name 4))
-          mode-line-buffer-identification-keymap)
-
 ;; Below bindings are made in global map as I want them to work even when my
 ;; minor mode is disabled
 (bind-keys

  (define-key map (kbd "z") #'quit-window) ; quit + bury
  (define-key map (kbd "q") #'modi/quit-and-kill-window)) ; quit + kill

(bind-keys
 :map modi-mode-map
  ("C-x 1"        . modi/toggle-one-window) ; default binding to `delete-other-windows'

                         (concat "*scratch-" mode-str "*")))
      (funcall (intern mode-str))))) ; http://stackoverflow.com/a/7539787/1219634

;;; Minibuffer and Recursive Edit
;; Quit the minibuffer automatically when focus moves away from it (which could
;; have happened by actions like clicking some other buffer using the mouse or
;; by hitting `C-x o'). This is to avoid the irritating occasions where repeated
