[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: Barry OReilly
Subject: Re: How to put default-directory into kill-ring?
Date: Wed, 12 Feb 2014 09:44:14 -0500

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

I usually go to buffer-menu and copy the buffer name, path, whatever.
I bind buffer-menu to 'f' in an Evil keymap because of how often I use
it. So in this setup, the typed keys for copying the absolute
directory path containing the current file would be: f$?/ then RET
then vBy .

reply via email to

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