help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: How to put default-directory into kill-ring?


From: Drew Adams
Subject: RE: How to put default-directory into kill-ring?
Date: Tue, 4 Feb 2014 06:01:14 -0800 (PST)

> is there any function to do this?

M-x cd RET C-x DEL C-g

`cd' changes directory, and the default is `default-directory'.
`C-x DEL' is `backward-kill-sentence', which kills the dir
in the minibuffer.  You can alternatively use `C-a C-k' to do
this.  (DEL is Backspace.)

If you have `insert-default-directory' = nil then  do `M-n'
after `M-x cd RET', to get the default dir in the minibuffer.

And yes, if you do this often, you could simply define a
command and key for it.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]