all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to create a directory while moving a file?
@ 2015-07-23 15:33 Marcin Borkowski
  2015-07-23 15:43 ` Nicolas Richard
  0 siblings, 1 reply; 2+ messages in thread
From: Marcin Borkowski @ 2015-07-23 15:33 UTC (permalink / raw)
  To: Help Gnu Emacs mailing list

Hi all,

quite often I'm moving a file in Dired (using `R'), and I realize that
a directory I'd like my file to be in is nonexistent.  So I C-g, do
dired-create-directory, and then `R' and `M-p'.

This seems too complicated.

I could of course write some Elisp to solve this, but maybe someone did
it already?

TIA,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How to create a directory while moving a file?
  2015-07-23 15:33 How to create a directory while moving a file? Marcin Borkowski
@ 2015-07-23 15:43 ` Nicolas Richard
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Richard @ 2015-07-23 15:43 UTC (permalink / raw)
  To: Marcin Borkowski; +Cc: Help Gnu Emacs mailing list

Marcin Borkowski <mbork@mbork.pl> writes:

> Hi all,
>
> quite often I'm moving a file in Dired (using `R'), and I realize that
> a directory I'd like my file to be in is nonexistent.  So I C-g, do
> dired-create-directory, and then `R' and `M-p'.

I have enable-recursive-minibuffers, so i usually do:
C-SPC C-a M-w ; copy whatever is in the minibuffer
M-x m k d i r RET C-y RET ; create that
and continue from there.

I admit it would be nice if this was done automagically.

-- 
Nico



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-07-23 15:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-23 15:33 How to create a directory while moving a file? Marcin Borkowski
2015-07-23 15:43 ` Nicolas Richard

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.