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: Marcin Borkowski
Subject: Re: How to put default-directory into kill-ring?
Date: Wed, 5 Feb 2014 18:03:41 +0100

Dnia 2014-02-04, o godz. 06:01:14
Drew Adams <address@hidden> napisaƂ(a):

> > 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.

This is a bit lengthy, but thanks nonetheless.

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

Of course.

Thanks!

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University



reply via email to

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