18

Github GitHub - emacs-straight/dired-git-info: Mirror of the dired-git-info pack...

 3 years ago
source link: https://github.com/emacs-straight/dired-git-info
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Description

This Emacs packages provides a minor mode which shows git information inside the dired buffer:

Installation

GNU ELPA

This package is available on 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:

(package-install-file "/path/to/dired-git-info.el")

Config

Bind the minor mode command in dired

(with-eval-after-load 'dired
  (define-key dired-mode-map ")" 'dired-git-info-mode))

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:

(setq dgi-auto-hide-details-p nil)

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:

(add-hook 'dired-after-readin-hook 'dired-git-info-auto-enable)

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK