Skip to content

Instantly share code, notes, and snippets.

@da-x
Created August 30, 2015 13:08
Show Gist options
  • Save da-x/41cde932279be590e6a6 to your computer and use it in GitHub Desktop.
Save da-x/41cde932279be590e6a6 to your computer and use it in GitHub Desktop.
Show git log only on the current file using magit
(defun my/magit-file-log-y ()
(interactive)
(magit-file-log (buffer-file-name))
)
(global-unset-key (kbd "M-f")) ;; forward-word
(global-set-key (kbd "M-f") 'my/magit-file-log-y)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment