mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
emacs/dired: don't enable dired-git-info in ranger
It won't correctly disable on `C-c C-e`, but it does work find if enabled manually. Also: refactors +dired-enable-git-info-h and map! call Relevant to #2106
This commit is contained in:
@ -7,10 +7,9 @@
|
||||
(mapc #'kill-buffer (doom-buffers-in-mode 'dired-mode))
|
||||
(message "Killed all dired buffers"))
|
||||
|
||||
|
||||
;;;###autoload
|
||||
(defun +dired-enable-git-info-h ()
|
||||
(if (and
|
||||
(not (file-remote-p default-directory))
|
||||
(locate-dominating-file "." ".git"))
|
||||
(dired-git-info-mode 1)))
|
||||
"Enable `dired-git-info-mode' in git repos."
|
||||
(and (not (file-remote-p default-directory))
|
||||
(locate-dominating-file "." ".git")
|
||||
(dired-git-info-mode 1)))
|
||||
|
Reference in New Issue
Block a user