[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ask for help
From: |
Xiang Ruan |
Subject: |
Re: ask for help |
Date: |
Wed, 20 Apr 2022 10:35:55 +0900 |
User-agent: |
mu4e 1.7.12; emacs 29.0.50 |
Hi, Tomas
Thank you for your response.
I don't know why, I only see you message in digest mail..(maybe I should check
my spam folder) I am sorry for replying late.
Thank you for the advice. I will check file-notify-add-watch later.
Best regards,
> On Tue, Apr 19, 2022 at 09:11:48PM +0900, Xiang Ruan wrote:
>> Hi, Philip
>>
>> Thank you for the quick response.
>>
>> Actually, I follow the below blog
>> https://pragmaticemacs.wordpress.com/2017/01/09/how-i-view-my-google-calendar-agenda-in-emacs/
>> to view my google calendar agenda in Emacs.
>>
>> My cron updates google calendar's agenda to a local file every
>> minute, and I use the above “open-gcal-agenda" command to show the
>> agenda in a buffer(the buffer will open with name "gcal")
>> What I want to do is, when the local file is updated by cron, I need Emacs
>> automatically execute "open-gcal-agenda" to update the "gcal" agenda buffer.
>
> The easiest way would be to activate auto-revert minor mode
> on the buffer showing this file (M-x auto-revert-mode)
>
> For the more general case (or if you want full flexibility)
> there is file-notify-add-watch, for example, which would
> call a function provided by you whenever anything happens
> to a file.
>
> Cheers
> --
> t
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: signature.asc
> Type: application/pgp-signature
> Size: 195 bytes
> Desc: not available
> URL:
> <https://lists.gnu.org/archive/html/help-gnu-emacs/attachments/20220419/c96b79d5/attachment.sig>
>
- Re: ask for help, (continued)
- Re: ask for help, Philip Kaludercic, 2022/04/19
- Re: ask for help, Xiang Ruan, 2022/04/19
- Re: ask for help, Philip Kaludercic, 2022/04/19
- Re: ask for help, Xiang Ruan, 2022/04/19
- Re: ask for help, Philip Kaludercic, 2022/04/20
- Re: ask for help, Xiang Ruan, 2022/04/20
Re: ask for help, Emanuel Berg, 2022/04/20
Re: ask for help,
Xiang Ruan <=