i do (eq major-mode 'org-agenda-mode) On 8/20/19, Nathan Neff <nathan.n...@gmail.com> 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.