mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-08-11 02:21:14 +10:00
Moving to Doom Emacs!
This commit is contained in:
@@ -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