From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Wales Subject: Re: Custom function: Detect agenda mode Date: Tue, 20 Aug 2019 16:59:05 -0700 Message-ID: References: <87y2zn8mcr.fsf@alphapapa.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:49640) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i0E1u-0001VM-Fz for emacs-orgmode@gnu.org; Tue, 20 Aug 2019 19:59:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i0E1t-0001vO-CD for emacs-orgmode@gnu.org; Tue, 20 Aug 2019 19:59:10 -0400 Received: from mail-lf1-x136.google.com ([2a00:1450:4864:20::136]:38306) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i0E1t-0001tw-2w for emacs-orgmode@gnu.org; Tue, 20 Aug 2019 19:59:09 -0400 Received: by mail-lf1-x136.google.com with SMTP id h28so389022lfj.5 for ; Tue, 20 Aug 2019 16:59:08 -0700 (PDT) In-Reply-To: <87y2zn8mcr.fsf@alphapapa.net> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Adam Porter Cc: emacs-orgmode@gnu.org good point. On 8/20/19, Adam Porter wrote: > Samuel Wales writes: > >> i do (eq major-mode 'org-agenda-mode) > > That works, but you should probably use: > > (derived-mode-p 'org-agenda-mode) > > > > -- 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.