Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/clemera/dired-git-info
Show git info in Emacs dired
https://github.com/clemera/dired-git-info
Last synced: 27 days ago
JSON representation
Show git info in Emacs dired
- Host: GitHub
- URL: https://github.com/clemera/dired-git-info
- Owner: clemera
- Created: 2019-02-10T00:17:55.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-12-07T22:58:11.000Z (about 1 year ago)
- Last Synced: 2024-11-22T21:46:14.449Z (about 2 months ago)
- Language: Emacs Lisp
- Homepage:
- Size: 188 KB
- Stars: 77
- Watchers: 5
- Forks: 8
- Open Issues: 6
-
Metadata Files:
- Readme: README.org
Awesome Lists containing this project
README
* Description
This Emacs packages provides a minor mode which shows git information inside
the dired buffer:[[./images/screenshot2.png]]
* Installation
** GNU ELPA
This package is available on [[https://elpa.gnu.org][GNU ELPA]]. You can install it via =M-x package-install RET dired-git-info RET=
** Manual
For manual installation, clone the repository and call:
#+BEGIN_SRC elisp
(package-install-file "/path/to/dired-git-info.el")
#+END_SRC* Config
** Bind the minor mode command in dired
#+BEGIN_SRC elisp
(with-eval-after-load 'dired
(define-key dired-mode-map ")" 'dired-git-info-mode))
#+END_SRC** Don't hide normal Dired file info
By default, toggling =dired-git-info-mode= also toggles the built-in
=dired-hide-details-mode=, which hides file details such as ownership,
permissions and size. This behaviour can be disabled by overriding
=dgi-auto-hide-details-p=:#+BEGIN_SRC elisp
(setq dgi-auto-hide-details-p nil)
#+END_SRC** Enable automatically in every Dired buffer (if in Git repository)
To enable =dired-git-info-mode= whenever you navigate to a Git repository, use
the following:
#+BEGIN_SRC elisp
(add-hook 'dired-after-readin-hook 'dired-git-info-auto-enable)
#+END_SRC