emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Custom function: Detect agenda mode


From: Samuel Wales
Subject: Re: [O] Custom function: Detect agenda mode
Date: Tue, 20 Aug 2019 15:02:23 -0700

i do (eq major-mode 'org-agenda-mode)

On 8/20/19, Nathan Neff <address@hidden> wrote:
> Hello all,
>
> I would like to map the same key to different functions in evil mode.
>
> For example, ",s" should be a shortcut to the schedule command.
>
> I'd like to have one function that I would map the command to, which
> would call either org-schedule or org-agenda-schedule, depending on whether
> the cursor is in an Agenda view or an org file.
>
> What is the "correct" way to do this?  Is there some handy functional
> programming
> fu that I should know?  For example, I wouldn't be surprised to find a
> function
> in org-mode already that would do the detection and take the proper action.
>
> Thanks,
> --Nate
>


-- 
The Kafka Pandemic

What is misopathy?
https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged.html

The disease DOES progress. MANY people have died from it. And ANYBODY
can get it at any time.



reply via email to

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