Last active
September 12, 2015 23:04
-
-
Save johnmastro/c78e1d6b245440f6dab5 to your computer and use it in GitHub Desktop.
Show Magit repo directory in ibuffer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; 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