[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: recentf: abbreviate paths? tilde for home folder?
From: |
Reiner Steib |
Subject: |
Re: recentf: abbreviate paths? tilde for home folder? |
Date: |
Mon, 01 Aug 2005 16:18:00 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
On Mon, Aug 01 2005, David Reitter wrote:
> How can I get recentf to show abbreviated paths in the "Open Recent"
> menu? That is, show paths just like in buffer names, where path
> names are shown only where necessary in order to distinguish between
> existing buffers.
[ In Emacs 22 (CVS)...]
(setq recentf-menu-filter 'recentf-show-basenames) or
`M-x customize-variable RET recentf-menu-filter RET'
> At least, I'd like to be able to replace my home folder with a tilde where
> possible.
(defun rs-recentf-filename-handler (name)
(replace-regexp-in-string (concat "\\`" (expand-file-name "~")) "~" name))
(setq recentf-filename-handler 'rs-recentf-filename-handler)
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/
Re: recentf: abbreviate paths? tilde for home folder?, David Reitter, 2005/08/04