From: Drew Adams <drew.adams@oracle.com>
To: Marcin Borkowski <mbork@wmi.amu.edu.pl>,
GNU Emacs users list <help-gnu-emacs@gnu.org>
Subject: RE: How to put default-directory into kill-ring?
Date: Tue, 4 Feb 2014 06:01:14 -0800 (PST) [thread overview]
Message-ID: <0b3ac5b2-4bbe-42b1-9362-b628a5a2c3ea@default> (raw)
In-Reply-To: <20140204120722.75a765ff@aga-netbook>
> 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.
next prev parent reply other threads:[~2014-02-04 14:01 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-04 11:07 How to put default-directory into kill-ring? Marcin Borkowski
2014-02-04 11:46 ` Thorsten Jolitz
2014-02-05 17:03 ` Marcin Borkowski
2014-02-04 14:01 ` Drew Adams [this message]
2014-02-05 17:03 ` Marcin Borkowski
2014-02-04 17:34 ` Leo Liu
-- strict thread matches above, loose matches on Subject: below --
2014-02-12 14:44 Barry OReilly
2014-02-12 15:14 ` Stefan Monnier
2014-02-14 12:41 ` Marcin Borkowski
2014-02-14 13:24 ` Stefan Monnier
2014-02-14 13:40 ` Nicolas Richard
2014-02-14 16:32 ` Stefan Monnier
2014-02-14 18:41 ` Marcin Borkowski
2014-02-14 21:31 ` Nicolas Richard
2014-02-14 18:42 ` Marcin Borkowski
2014-02-14 12:59 ` Michael Heerdegen
2014-02-14 18:40 ` Marcin Borkowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0b3ac5b2-4bbe-42b1-9362-b628a5a2c3ea@default \
--to=drew.adams@oracle.com \
--cc=help-gnu-emacs@gnu.org \
--cc=mbork@wmi.amu.edu.pl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.