[Top][All Lists]

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

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

From: Leo Liu
Subject: Re: How to put default-directory into kill-ring?
Date: Wed, 05 Feb 2014 01:34:29 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (OS X 10.9.1)

On 2014-02-04 19:07 +0800, Marcin Borkowski wrote:
> quite often I want to put some full path to some file (usually
> init.el).  It would be quite convenient for M-x pwd (or maybe C-u M-x
> pwd?) to put its output into the kill ring, which is does not.  So: is
> there any function to do this?  (I can easily write it myself, but
> don't want to reinvent the wheel.)  If not, could this be considered a
> feature request?

A small package for many such tasks:

M-w b copies buffer-file-name or default-directory with the following
keys modifies the kill:

-: remove the basename
0: remove the directory name
+: full path


reply via email to

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