[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: |
Tue, 19 Apr 2022 21:11:48 +0900 |
User-agent: |
mu4e 1.7.12; emacs 29.0.50 |
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.
Thank you.
Philip Kaludercic <philipk@posteo.net> writes:
> Xiang Ruan <ruanxiang@ruanxiang.net> writes:
>
>> Hi,
>>
>> I am not familiar with emacs-lisp programming, I just wonder if this
>> list could give me some advice on how to implement the below
>> functionality.
>>
>> Suppose I invoke a commend "a" in a buffer, then the buffer may have a name
>> with "a".
>> I want to keep watching a specific file on my system, let's say, a file of
>> "/data/b".
>> When /data/b changes, I want emacs to automatically update or
>> re-invoke "a" again in the same buffer "a" without catch my focus when
>> I am working on other buffers.
>
> Is "a" a buffer or a command. It might help to make your example more
> concrete by using actual names.
>
>> My question is, is it possible to implement it? If it is possible, can
>> anybody suggest me a simple example ?
>>
>> Thank you in advance.
>>
>>
>> Best regards,
>>
>>
Re: ask for help, Emanuel Berg, 2022/04/20