[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: automatic dired update
From: |
Xah Lee |
Subject: |
Re: automatic dired update |
Date: |
Sun, 4 Jan 2009 13:05:50 -0800 (PST) |
User-agent: |
G2/1.0 |
Does anyone know how to make dired auto-refresh?
For example, i have a dired buffer of dir xyz buried somewhere.
Then, i renamed some files in OS's Desktop.
Then, when i switch to dir xyz in emacs, i wish to see the updated
list without me having to type g to refresh.
originally i thought just some hook... something like
(add-hook 'dired-load-hook
'revert-buffer
)
but when actually trying to do it, apparently not that simple.
I thought it must be some function or variable that tells me when
buffer display is switched or updated... can't locate it.
Thanks.
Xah
∑ http://xahlee.org/
☄
On Dec 31 2008, 7:16 pm, "Russ P." <Russ.Paie...@gmail.com> wrote:
> On Dec 31, 3:07 am,XahLee<xah...@gmail.com> wrote:
>
>
>
> > On Dec 30, 3:20 pm, "Russ P." <Russ.Paie...@gmail.com> wrote:
>
> > > Wouldn't it be nice if dired automatically updated every time it is
> > > "viewed" rather than requiring the user to type "g"?
>
> > > Also, I find that the columns in dired get misaligned, and I need to
> > > type "g" to get them realigned. Has that ever been fixed? Thanks.
>
> > you could set a hook so that whenever you switch to dired mode, it
> > gets updated.
>
> > Let us know if you need the code.
>
> > Perhaps this should be dired's option it emacs customization.
>
> > Xah
> > ∑http://xahlee.org/
>
> > ☄
>
> Yes, I would like to get the code. Thanks.
- Re: automatic dired update,
Xah Lee <=
Re: automatic dired update, Michael Heerdegen, 2009/01/05