mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-23 11:30:23 +10:00
Moving to Doom Emacs!
This commit is contained in:
15
.emacs.d/modules/emacs/dired/autoload.el
Normal file
15
.emacs.d/modules/emacs/dired/autoload.el
Normal file
@@ -0,0 +1,15 @@
|
||||
;;; emacs/dired/autoload.el -*- lexical-binding: t; -*-
|
||||
|
||||
;;;###autoload
|
||||
(defun +dired/quit-all ()
|
||||
"Kill all `dired-mode' buffers."
|
||||
(interactive)
|
||||
(mapc #'kill-buffer (doom-buffers-in-mode 'dired-mode))
|
||||
(message "Killed all dired buffers"))
|
||||
|
||||
;;;###autoload
|
||||
(defun +dired-enable-git-info-h ()
|
||||
"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