Skip to content

Instantly share code, notes, and snippets.

@johnmastro
Last active September 12, 2015 23:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnmastro/c78e1d6b245440f6dab5 to your computer and use it in GitHub Desktop.
Save johnmastro/c78e1d6b245440f6dab5 to your computer and use it in GitHub Desktop.
Show Magit repo directory in ibuffer
;; Turns out it's not necessary to define a new ibuffer column type. Both
;; `list-buffers' and `ibuffer' respect `list-buffers-directory', so just do
;; something like this:
(add-hook 'magit-mode-hook
(lambda ()
(let ((dir (abbreviate-file-name default-directory)))
(setq list-buffers-directory dir))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment