From bbffcd8d2bcfbbe1b4a42b7fe04f8f0fe3fb5f46 Mon Sep 17 00:00:00 2001 From: Laurens Miers Date: Thu, 26 Sep 2024 22:21:11 +0200 Subject: [PATCH] DIRED: Add guessing of target directory --- config.org | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/config.org b/config.org index 441286c..40aefce 100644 --- a/config.org +++ b/config.org @@ -483,6 +483,15 @@ C-c C-c to apply." )) #+end_src +** Guess target directory + +I currently prefer to have two dired windows open in the same frame. +Instruct dired to 'Prefer next windows on the same frame' when renaming/copying files. + +#+BEGIN_SRC emacs-lisp +(setq dired-dwim-target 'dired-dwim-target-next) +#+END_SRC + * Whole-line-or-region Source: