From d5a99e38b7974f9d283ac3d6985ecaf466db388d Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sun, 22 Sep 2024 15:35:48 +0200 Subject: emacs: Add binding to quickly open dired --- .config/emacs/init.el | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to '.config/emacs') diff --git a/.config/emacs/init.el b/.config/emacs/init.el index 7cddded..4ec421d 100644 --- a/.config/emacs/init.el +++ b/.config/emacs/init.el @@ -881,7 +881,15 @@ the comparison of the ‘company-pseudo-tooltip-overlay’ height and 0 using PR ("o" x-tetris-rotate-mirror) ("SPC" tetris-move-bottom))) +(defun x-dired-in-current-directory () + "Open `dired' in the current directory." + (interactive) + (dired default-directory)) + (x-define-evil-bindings + :normal + ("d" x-dired-in-current-directory) + :normal&visual ("a" x-evil-align-regexp) ("s" x-evil-sort-lines) -- cgit v1.2.3